prevent tool buttons from being longer than 7 characters
for i=1,250 do elements.property(i,"Name",(("ALL BASE BELONG TO US "):rep(20)..(" "):rep(120)..string.char(10)):rep(70)) end Could prevent it from lua, but too much work for no reason. Still allows SPWN2 button to work.
This commit is contained in:
parent
55d20f1bb2
commit
91cf20e521
@ -8,7 +8,7 @@ ToolButton::ToolButton(ui::Point position, ui::Point size, std::string text_, st
|
||||
Appearance.BorderActive = ui::Colour(255, 0, 0);
|
||||
|
||||
//don't use "..." on elements that have long names
|
||||
buttonDisplayText = ButtonText;
|
||||
buttonDisplayText = ButtonText.substr(0, 7);
|
||||
Component::TextPosition(buttonDisplayText);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user