Hi guys, I don't know if this is something you may want but here goes. This works on the idea of you using lua list arrays for text.
What it will do is wrap a panel around the text and auto stretch or shrink to your text length size. Please keep in mind this is a WIP and still needs a lot of work.
local WeaponName = {
[0] = "Empty",
[1] = "Sniper R400 Panther",
[2] = "IronFist Shotgun",
[3] = "Futuretek Shotgun",
[4] = "S4-VC6 Pistol",
[5] = "Quasar Gun",
[6] = "Water Gun",
[7] = "Paint Gun",
[8] = "Typhoon",
[9] = "Ray Gun",
[10] = "Toy Gun"
}
local MyText = "I'm using the: "
function me_settings_init(e)
SetPlayerWeapons(0)
end
function me_settings_main(e)
Wlen = string.len(WeaponName[1]..MyText) -- This counts the characters in the strings WeaponName and MyText by adding them together. Try changing the [1] to another number.
Panel(50-(Wlen/3.8), 50, 50+(Wlen/3.8), 18) -- This uses the text lengths to make the panel around the text which will centre on the screen.
TextCenterOnXColor(50,52.5,1,MyText..WeaponName[1],248,248,255) -- Displays text in panel using both strings. Try changing the [1] to another number.
end
This is working on text size 1. You would have to adjust the dimension / locations for other text sizes. I have also included my panels for this example which you can use by unzipping into this folder below.
\Steam\steamapps\common\Game Guru\Files\languagebank\neutral\gamecore\huds\panels\
That's it guys.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 SLI mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.
Laptop - M17xR3
A new competition running for GG