protected void MakeButtonAt(string text, int width, int height, Font font,
                             Anchor verAnchor, int x, int y, Action <int, int> onClick)
 {
     WidgetConstructors.MakeButtonAt(game, widgets, ref widgetIndex,
                                     text, width, height, font, Anchor.Centre,
                                     verAnchor, x, y, onClick);
 }
Example #2
0
 protected void MakeButtonAt(string text, int width, int height, Font font, Anchor horAnchor,
                             Anchor verAnchor, int x, int y)
 {
     WidgetConstructors.MakeButtonAt(game, widgets, ref widgetIndex,
                                     text, width, height, font, horAnchor,
                                     verAnchor, x, y, null);
 }
Example #3
0
 protected void MakeBooleanAt(Anchor horAnchor, Anchor verAnchor, Font font, bool initValue,
                              int width, int height, int x, int y)
 {
     WidgetConstructors.MakeBooleanAt(game, widgets, ref widgetIndex,
                                      horAnchor, verAnchor, font, initValue,
                                      width, height, x, y, null);
 }
Example #4
0
 protected void MakeInput(string text, int width, Anchor horAnchor, Anchor verAnchor,
                          bool password, int x, int y, int maxChars, string hint)
 {
     WidgetConstructors.MakeInput(game, widgets, ref widgetIndex,
                                  text, width, horAnchor, verAnchor,
                                  inputFont, inputHintFont, null,
                                  password, x, y, maxChars, hint);
 }
 protected void MakeLabelAt(string text, Font font, Anchor horAnchor, Anchor verAnchor, int x, int y)
 {
     WidgetConstructors.MakeLabelAt(game, widgets, ref widgetIndex,
                                    text, font, horAnchor, verAnchor, x, y);
 }