Xonotic
dialog_monstertools.qc File Reference
#include "dialog_monstertools.qh"
#include "textlabel.qh"
#include "radiobutton.qh"
#include "commandbutton.qh"
#include "slider.qh"
+ Include dependency graph for dialog_monstertools.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void XonoticMonsterToolsDialog_fill (entity me)
 

Function Documentation

◆ XonoticMonsterToolsDialog_fill()

void XonoticMonsterToolsDialog_fill ( entity  me)

Definition at line 8 of file dialog_monstertools.qc.

References entity(), and makeXonoticTextLabel().

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)
+ Here is the call graph for this function: