Xonotic
dialog_monstertools.qc
Go to the documentation of this file.
1 #include "dialog_monstertools.qh"
2 
3 #include "textlabel.qh"
4 #include "radiobutton.qh"
5 #include "commandbutton.qh"
6 #include "slider.qh"
7 
9 {
10  entity e;
11 
12  me.TR(me);
13  me.TD(me, 1, 0.25, e = makeXonoticTextLabel(0, _("Monster:")));
14  me.TR(me);
15  me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "zombie", _("Zombie")));
16  me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "spider", _("Spider")));
17  me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "shambler", _("Shambler")));
18  me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "mage", _("Mage")));
19  me.TD(me, 1, 0.4, e = makeXonoticRadioButton(2, "menu_monsters_edit_spawn", "wyvern", _("Wyvern")));
20  me.TR(me);
21  me.TDempty(me, 0.1);
22  me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("Spawn"), '0 0 0', "spawnmob $menu_monsters_edit_spawn $menu_monsters_edit_movetarget", 0));
23  me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("Remove"), '0 0 0', "killmob", 0));
24  me.TR(me);
25  me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("Move target:"), '0 0 0', "editmob movetarget $menu_monsters_edit_movetarget", 0));
26  me.TD(me, 1, 0.5, e = makeXonoticRadioButton(2, "menu_monsters_edit_movetarget", "1", _("Follow")));
27  me.TD(me, 1, 0.5, e = makeXonoticRadioButton(2, "menu_monsters_edit_movetarget", "2", _("Wander")));
28  me.TD(me, 1, 0.5, e = makeXonoticRadioButton(2, "menu_monsters_edit_movetarget", "3", _("Spawnpoint")));
29  me.TD(me, 1, 0.5, e = makeXonoticRadioButton(2, "menu_monsters_edit_movetarget", "4", _("No moving")));
30  me.TR(me);
31  me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Colors:")));
32  me.TR(me);
33  me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("Set skin:"), '0 0 0', "editmob skin $menu_monsters_edit_skin", 0));
34  me.TD(me, 1, 1.5, e = makeXonoticSlider(0, 99, 1, "menu_monsters_edit_skin"));
35  me.TR(me);
36 
37  me.gotoRC(me, me.rows - 1, 0);
38  me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
39  e.onClick = Dialog_Close;
40  e.onClickEntity = me;
41 }
entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
Definition: radiobutton.qc:10
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition: slider.qc:10
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
void XonoticMonsterToolsDialog_fill(entity me)