Compare commits
No commits in common. "8c478084a2031887776ccc4316f7196de5943ff5" and "796777949204d4c8aca0898d5d05311d0c580927" have entirely different histories.
8c478084a2
...
7967779492
@ -4,7 +4,6 @@ namespace ManiaControl\Configurator;
|
||||
|
||||
use FML\Components\CheckBox;
|
||||
use FML\Controls\Entry;
|
||||
use FML\Controls\TextEdit;
|
||||
use FML\Controls\Frame;
|
||||
use FML\Controls\Label;
|
||||
use FML\Controls\Labels\Label_Text;
|
||||
@ -440,7 +439,7 @@ class GameModeSettings implements ConfiguratorMenu, CallbackListener, Communicat
|
||||
$quad->setX(0.27 * $width);
|
||||
$checkBox = new CheckBox(self::ACTION_PREFIX_SETTING . $settingName, $settingValue, $quad);
|
||||
$settingFrame->addChild($checkBox);
|
||||
} else if (is_numeric($settingValue)) {
|
||||
} else {
|
||||
// Value entry
|
||||
$entry = new Entry();
|
||||
$settingFrame->addChild($entry);
|
||||
@ -450,19 +449,6 @@ class GameModeSettings implements ConfiguratorMenu, CallbackListener, Communicat
|
||||
$entry->setStyle(Label_Text::STYLE_TextValueSmall);
|
||||
$entry->setTextSize(1);
|
||||
$entry->setX(0.275 * $width);
|
||||
} else {
|
||||
// Standard entry
|
||||
$textedit = new TextEdit();
|
||||
$settingFrame->addChild($textedit);
|
||||
$textedit->setX(0.275 * $width);
|
||||
$textedit->setSize(0.3 * $width, 0.9 * $settingHeight);
|
||||
$textedit->setStyle(Label_Text::STYLE_TextValueSmall);
|
||||
$textedit->setTextSize(1);
|
||||
$textedit->setName(self::ACTION_PREFIX_SETTING . $settingName);
|
||||
$textedit->setDefault($settingValue);
|
||||
$textedit->setHorizontalAlign(TextEdit::CENTER);
|
||||
$textedit->setVerticalAlign(TextEdit::CENTER);
|
||||
$textedit->setMaxLines(1);
|
||||
}
|
||||
|
||||
if ($isScriptMode) {
|
||||
|
@ -10,7 +10,6 @@ use FML\Controls\Labels\Label_Button;
|
||||
use FML\Controls\Labels\Label_Text;
|
||||
use FML\Controls\Quad;
|
||||
use FML\Controls\Quads\Quad_Icons64x64_1;
|
||||
use FML\Controls\TextEdit;
|
||||
use FML\Script\Features\Paging;
|
||||
use FML\Script\Script;
|
||||
use ManiaControl\Admin\AuthenticationManager;
|
||||
@ -219,7 +218,7 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
|
||||
$label->setTextSize(1);
|
||||
$valuePicker = new ValuePicker($settingName, $setting->set, $setting->value, $label);
|
||||
$settingFrame->addChild($valuePicker);
|
||||
} else if ($setting->type === Setting::TYPE_INT) {
|
||||
} else {
|
||||
// Standard entry
|
||||
$entry = new Entry();
|
||||
$settingFrame->addChild($entry);
|
||||
@ -229,19 +228,6 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
|
||||
$entry->setTextSize(1);
|
||||
$entry->setName($settingName);
|
||||
$entry->setDefault($setting->value);
|
||||
} else {
|
||||
// Standard TextEdit
|
||||
$textedit = new TextEdit();
|
||||
$settingFrame->addChild($textedit);
|
||||
$textedit->setX($width * 0.33);
|
||||
$textedit->setSize($width * 0.3, $settingHeight * 0.9);
|
||||
$textedit->setStyle(Label_Text::STYLE_TextValueSmall);
|
||||
$textedit->setTextSize(1);
|
||||
$textedit->setName(self::ACTION_PREFIX_SETTING . $setting->index);
|
||||
$textedit->setDefault($setting->value);
|
||||
$textedit->setHorizontalAlign(TextEdit::CENTER);
|
||||
$textedit->setVerticalAlign(TextEdit::CENTER);
|
||||
$textedit->setMaxLines(1);
|
||||
}
|
||||
|
||||
$posY -= $settingHeight;
|
||||
|
@ -5,7 +5,6 @@ namespace ManiaControl\Plugins;
|
||||
use FML\Components\CheckBox;
|
||||
use FML\Components\ValuePicker;
|
||||
use FML\Controls\Entry;
|
||||
use FML\Controls\TextEdit;
|
||||
use FML\Controls\Frame;
|
||||
use FML\Controls\Label;
|
||||
use FML\Controls\Labels\Label_Button;
|
||||
@ -348,19 +347,6 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAns
|
||||
$label->setTextSize(1);
|
||||
$valuePicker = new ValuePicker(self::ACTION_PREFIX_SETTING . $setting->index, $setting->set, $setting->value, $label);
|
||||
$settingFrame->addChild($valuePicker);
|
||||
} else if ($setting->type === Setting::TYPE_STRING) {
|
||||
// Standard entry
|
||||
$textedit = new TextEdit();
|
||||
$settingFrame->addChild($textedit);
|
||||
$textedit->setX($width * 0.33);
|
||||
$textedit->setSize($width * 0.3, $settingHeight * 0.9);
|
||||
$textedit->setStyle(Label_Text::STYLE_TextValueSmall);
|
||||
$textedit->setTextSize(1);
|
||||
$textedit->setName(self::ACTION_PREFIX_SETTING . $setting->index);
|
||||
$textedit->setDefault($setting->value);
|
||||
$textedit->setHorizontalAlign(TextEdit::CENTER);
|
||||
$textedit->setVerticalAlign(TextEdit::CENTER);
|
||||
$textedit->setMaxLines(1);
|
||||
} else {
|
||||
// Value entry
|
||||
$entry = new Entry();
|
||||
|
@ -26,11 +26,6 @@ class TextEdit extends Control implements MultiLineable, Scriptable, Styleable,
|
||||
const FORMAT_Password = "Password";
|
||||
const FORMAT_NewPassword = "NewPassword";
|
||||
|
||||
/**
|
||||
* @var string $name TextEdit name
|
||||
*/
|
||||
protected $name = null;
|
||||
|
||||
/**
|
||||
* @var string $default Default value
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user