Skip to content

Commit

Permalink
Fix "..." size, align all control to checkbox (has nice margin)
Browse files Browse the repository at this point in the history
  • Loading branch information
aybe committed Jul 9, 2024
1 parent 028c611 commit a64f03a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/gui/sdl_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,9 @@ class PropertyEditorString : public PropertyEditor {
if (title=="4dos"&&!strcmp(prop->propname.c_str(), "rem"))
input = new GUI::Input(this, 30, 0, 470);
else {
input = new GUI::Input(this, 270, 0, opts?200:230);
input = new GUI::Input(this, 260, 0, opts?195:235);
if (opts) {
infoButton=new GUI::Button(this, 470, 0, "...", 30, 24);
infoButton=new GUI::Button(this, 460, 0, "...", 35, 24);
infoButton->addActionHandler(this);
}
}
Expand Down Expand Up @@ -907,9 +907,9 @@ class PropertyEditorFloat : public PropertyEditor {
public:
PropertyEditorFloat(Window *parent, int x, int y, Section_prop *section, Property *prop, bool opts) :
PropertyEditor(parent, x, y, section, prop, opts) {
input = new GUI::Input(this, 380, 0, opts?90:120);
input = new GUI::Input(this, 365, 0, opts?90:130);
if (opts) {
infoButton=new GUI::Button(this, 470, 0, "...", 30, 24);
infoButton=new GUI::Button(this, 460, 0, "...", 35, 24);
infoButton->addActionHandler(this);
}
input->setText(stringify((double)prop->GetValue()));
Expand Down Expand Up @@ -964,9 +964,9 @@ class PropertyEditorHex : public PropertyEditor {
public:
PropertyEditorHex(Window *parent, int x, int y, Section_prop *section, Property *prop, bool opts) :
PropertyEditor(parent, x, y, section, prop, opts) {
input = new GUI::Input(this, 380, 0, opts?90:120);
input = new GUI::Input(this, 365, 0, opts?90:130);
if (opts) {
infoButton=new GUI::Button(this, 470, 0, "...", 30, 24);
infoButton=new GUI::Button(this, 460, 0, "...", 35, 24);
infoButton->addActionHandler(this);
}
std::string temps = prop->GetValue().ToString();
Expand Down Expand Up @@ -1022,9 +1022,9 @@ class PropertyEditorInt : public PropertyEditor {
public:
PropertyEditorInt(Window *parent, int x, int y, Section_prop *section, Property *prop, bool opts) :
PropertyEditor(parent, x, y, section, prop, opts) {
input = new GUI::Input(this, 380, 0, opts?90:120);
input = new GUI::Input(this, 365, 0, opts?90:130);
if (opts) {
infoButton=new GUI::Button(this, 470, 0, "...", 30, 24);
infoButton=new GUI::Button(this, 460, 0, "...", 35, 24);
infoButton->addActionHandler(this);
}
//Maybe use ToString() of Value
Expand Down

0 comments on commit a64f03a

Please sign in to comment.