Editing Mod API Reference:UI
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 54: | Line 54: | ||
* '''Text''' ''string'': The text to display on the button. | * '''Text''' ''string'': The text to display on the button. | ||
* '''Color''' ''string'': The color of the button. Pass this as a string in #RRGGBB format. Only the following colors are supported for buttons: | * '''Color''' ''string'': The color of the button. Pass this as a string in #RRGGBB format. Only the following colors are supported for buttons: | ||
− | {{Color|BABABC}} {{Color|6C73D1}} {{Color|FF00ED}} {{Color|FFC200}} {{Color|00A0FF}} {{Color|00B5FF}} {{Color|F3FFAE}} {{Color|43C731}} {{Color|43C631}} {{Color|1274A4}} {{Color|1274A5}} {{Color|B03B3B}} {{Color|0021FF}} {{Color|359029}} {{Color|00E9FF}} {{Color|00FF21}} {{Color|FFF700}} {{Color|AA3A3A}} {{Color|43C732}} {{Color|00D4FF}} {{Color|B03C3C}} {{Color|00F4FF}} {{Color|00BFFF}} {{Color|4EC4FF}} {{Color|615DDF}} {{Color|100C08}} {{Color|0000FF}} {{Color|4EFFFF}} {{Color|59009D}} {{Color|008000}} {{Color|FF7D00}} {{Color|FF0000}} {{Color|606060}} {{Color|00FF05}} {{Color|FF697A}} {{Color|94652E}} {{Color|00FF8C}} {{Color|FF4700}} {{Color|009B9D}} {{Color|23A0FF}} {{Color|AC0059}} {{Color|FF87FF}} {{Color|FFFF00}} {{Color|943E3E}} {{Color|FEFF9B}} {{Color|AD7E7E}} {{Color|B70AFF}} {{Color|FFAF56}} {{Color|FF00B1}} {{Color|8EBE57}} {{Color|DAA520}} {{Color|990024}} {{Color|00FFFF}} {{Color|8F9779}} {{Color|880085}} {{Color|00755E}} {{Color|FFE5B4}} {{Color|4169E1}} {{Color|FF43A4}} {{Color|8DB600}} {{Color|40826D}} {{Color|C04000}} {{Color|FFDDF4}} {{Color|CD7F32}} {{Color|C19A6B}} {{Color|C09999}} {{Color|B0BF1A}} {{Color|3B7A57}} {{Color|4B5320}} {{Color|664C28}} {{Color|893F45}} {{Color|D2691E}} {{Color|36454F}} {{Color|FF00FF}} {{Color|76FF7A}} | + | {{Color|BABABC}}, {{Color|6C73D1}}, {{Color|FF00ED}}, {{Color|FFC200}}, {{Color|00A0FF}}, {{Color|00B5FF}}, {{Color|F3FFAE}}, {{Color|43C731}}, {{Color|43C631}}, {{Color|1274A4}}, {{Color|1274A5}}, {{Color|B03B3B}}, {{Color|0021FF}}, {{Color|359029}}, {{Color|00E9FF}}, {{Color|00FF21}}, {{Color|FFF700}}, {{Color|AA3A3A}}, {{Color|43C732}}, {{Color|00D4FF}}, {{Color|B03C3C}}, {{Color|00F4FF}}, {{Color|00BFFF}}, {{Color|4EC4FF}}, {{Color|615DDF}}, {{Color|100C08}}, {{Color|0000FF}}, {{Color|4EFFFF}}, {{Color|59009D}}, {{Color|008000}}, {{Color|FF7D00}}, {{Color|FF0000}}, {{Color|606060}}, {{Color|00FF05}}, {{Color|FF697A}}, {{Color|94652E}}, {{Color|00FF8C}}, {{Color|FF4700}}, {{Color|009B9D}}, {{Color|23A0FF}}, {{Color|AC0059}}, {{Color|FF87FF}}, {{Color|FFFF00}}, {{Color|943E3E}}, {{Color|FEFF9B}}, {{Color|AD7E7E}}, {{Color|B70AFF}}, {{Color|FFAF56}}, {{Color|FF00B1}}, {{Color|8EBE57}}, {{Color|DAA520}}, {{Color|990024}}, {{Color|00FFFF}}, {{Color|8F9779}}, {{Color|880085}}, {{Color|00755E}}, {{Color|FFE5B4}}, {{Color|4169E1}}, {{Color|FF43A4}}, {{Color|8DB600}}, {{Color|40826D}}, {{Color|C04000}}, {{Color|FFDDF4}}, {{Color|CD7F32}}, {{Color|C19A6B}}, {{Color|C09999}}, {{Color|B0BF1A}}, {{Color|3B7A57}}, {{Color|4B5320}}, {{Color|664C28}}, {{Color|893F45}}, {{Color|D2691E}}, {{Color|36454F}}, {{Color|FF00FF}}, {{Color|76FF7A}} |
* '''TextColor''' ''string'': The color of the text on the button. Pass this as a string in #RRGGBB format. | * '''TextColor''' ''string'': The color of the text on the button. Pass this as a string in #RRGGBB format. | ||
* '''OnClick''' ''function'': Pass the name of a lua function to be called whenever the player clicks the button. | * '''OnClick''' ''function'': Pass the name of a lua function to be called whenever the player clicks the button. |