51 N_(
"This is what the color looks like");
63 "setup_colors_preview_background.xml")),
66 mGradTypeLabel(
new Label(this,
_(
"Type:"))),
67 mGradTypeSlider(
new Slider(this, 0.0, 3.0, 1.0)),
70 mGradDelayLabel(
new Label(this,
_(
"Delay:"))),
71 mGradDelaySlider(
new Slider(this, 20.0, 100.0, 1.0)),
76 mRedSlider(
new Slider(this, 0.0, 255.0, 1.0)),
80 mGreenLabel(
new Label(this,
_(
"Green:"))),
81 mGreenSlider(
new Slider(this, 0.0, 255.0, 1.0)),
86 mBlueSlider(
new Slider(this, 0.0, 255.0, 1.0)),
110 std::string longText =
_(
"Static");
117 longText =
_(
"Pulse");
123 longText =
_(
"Rainbow");
129 longText =
_(
"Spectrum");
184 place(0, 0,
mScroll, 6, 6).setPadding(2);
191 place(5, 8,
mRedText, 1, 1).setPadding(1);
197 place(5, 10,
mBlueText, 1, 1).setPadding(1);
217 const std::string &eventId =
event.getId();
218 if (eventId ==
"slider_grad")
225 if (eventId ==
"slider_graddelay")
232 if (eventId ==
"slider_red")
238 if (eventId ==
"slider_green")
244 if (eventId ==
"slider_blue")
297 PRAGMA45(GCC diagnostic ignored
"-Wswitch-enum")
456 const bool delayEnable =
true;
#define fromBool(val, name)
void setOpaque(Opaque opaque)
void setLinkHandler(LinkHandler *linkHandler)
void setOpaque(Opaque opaque)
int getWidth(const std::string &text) const
void setCaption(const std::string &caption)
ContainerPlacer getPlacer(const int x, const int y)
void addSelectionListener(SelectionListener *const selectionListener)
void setName(const std::string &name)
TextField * mGradDelayText
static void setEntry(Slider *const s, TextField *const t, const int value)
void action(const ActionEvent &event)
TextPreview * mTextPreview
Setup_Colors(const Widget2 *const widget)
void valueChanged(const SelectionEvent &event)
Slider * mGradDelaySlider
static const char *const rawmsg
void setScale(const double scaleStart, const double scaleEnd)
void setValue(const double value)
void setNumeric(const bool numeric)
void setText(const std::string &text)
void setRange(const int min, const int max)
void setTextColor(const Color *color)
void setShadow(const bool shadow)
void setTextBGColor(const Color *color)
void useTextAlpha(const bool alpha)
void setOpaque(const Opaque opaque)
void setBGColor(const Color *color)
void setFont(Font *const font)
void setOutline(const bool outline)
const Color & getTestColor(const UserColorIdT type) const
GradientTypeT getGradientType(const UserColorIdT type) const
int getGradientDelay(const UserColorIdT type) const
void setColor(const UserColorIdT type, const int r, const int g, const int b)
const Color & getColor(UserColorIdT type, const unsigned int alpha)
void setGradientDelay(const UserColorIdT type, const int delay)
void setGradient(const UserColorIdT type, const GradientTypeT grad)
int getColorTypeAt(const int i)
void setTestColor(const UserColorIdT type, const Color &color)
const Color & getCommittedColor(const UserColorIdT type) const
GradientType ::T GradientTypeT
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class TestMain
const bool LoseFocusOnTab_true
std::string toString(T const &value)
converts any type to a string
@ AIR_COLLISION_HIGHLIGHT
@ MONSTER_COLLISION_HIGHLIGHT
@ GROUNDTOP_COLLISION_HIGHLIGHT
@ HIT_LOCAL_PLAYER_MONSTER
@ HIT_LOCAL_PLAYER_CRITICAL
@ WATER_COLLISION_HIGHLIGHT
UserColorId ::T UserColorIdT
UserPalette * userPalette