multiline comment box

This commit is contained in:
kremsy 2014-01-03 15:58:17 +01:00
parent fc5b063009
commit df6bc62856

View File

@ -142,6 +142,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
$substyle = Quad_Icons64x64_1::SUBSTYLE_LvlGreen; $substyle = Quad_Icons64x64_1::SUBSTYLE_LvlGreen;
} }
$entry = new Entry(); $entry = new Entry();
$settingFrame->add($entry); $settingFrame->add($entry);
$entry->setStyle(Label_Text::STYLE_TextValueSmall); $entry->setStyle(Label_Text::STYLE_TextValueSmall);
@ -152,6 +153,14 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
$entry->setName(self::ACTION_PREFIX_SETTING . $name); $entry->setName(self::ACTION_PREFIX_SETTING . $name);
$entry->setDefault($value); $entry->setDefault($value);
if($name == "Comment"){#
$entry->setAutoNewLine(true);
$entry->setSize($width * 0.48, $settingHeight * 3 + $settingHeight * 0.9);
$settingFrame->setY($y - $settingHeight * 1.5);
//dummy:
$y -= $settingHeight * 3;
$id += 3;
}
if($substyle != '') { if($substyle != '') {
$quad = new Quad_Icons64x64_1(); $quad = new Quad_Icons64x64_1();