Go to the source code of this file.
◆ XonoticHUDPhysicsDialog_fill()
Definition at line 8 of file dialog_hudpanel_physics.qc.
References entity(), and makeXonoticTextSlider().
11 string panelname =
"physics";
15 e.addValue(e, _(
"Disable"),
"0");
16 e.addValue(e, _(
"Enable"),
"1");
17 e.addValue(e, _(
"Enable even observing"),
"2");
18 e.addValue(e, _(
"Enable only in Race/CTS"),
"3");
19 e.configureXonoticTextSliderValues(e);
24 me.TD(me, 1, 1.4, e =
makeXonoticCheckBox(0,
"hud_panel_physics_progressbar", _(
"Status bar")));
26 e.addValue(e, _(
"Left align") ,
"0");
27 e.addValue(e, _(
"Right align") ,
"1");
28 e.addValue(e, _(
"Inward align") ,
"2");
29 e.addValue(e, _(
"Outward align"),
"3");
30 e.configureXonoticTextSliderValues(e);
33 me.TD(me, 1, 4, e =
makeXonoticCheckBox(0,
"hud_panel_physics_flip", _(
"Flip speed/acceleration positions")));
38 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"hud_panel_physics_speed_vertical", _(
"Include vertical speed")));
51 e.addValue(e, _(
"qu/s") ,
"1");
52 e.addValue(e, _(
"m/s") ,
"2");
53 e.addValue(e, _(
"km/h") ,
"3");
54 e.addValue(e, _(
"mph") ,
"4");
55 e.addValue(e, _(
"knots"),
"5");
56 e.configureXonoticTextSliderValues(e);
57 me.TD(me, 1, 2.6/3, e =
makeXonoticCheckBox(0,
"hud_panel_physics_speed_unit_show", _(
"Show")));
60 me.TD(me, 1, 3.8/2, e =
makeXonoticCheckBox(0,
"hud_panel_physics_topspeed", _(
"Top speed")));
61 me.TD(me, 1, 3.8/2, e =
makeXonoticSlider(1, 10, 1,
"hud_panel_physics_topspeed_time"));
67 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"hud_panel_physics_acceleration_vertical", _(
"Include vertical acceleration")));
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
entity makeXonoticTextSlider(string theCvar)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)