Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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
8
void
XonoticMonsterToolsDialog_fill
(
entity
me)
9
{
10
entity
e;
11
12
me.TR(me);
13
me.TD(me, 1, 4, e =
makeXonoticTextLabel
(0, _(
"Monster:"
)));
14
me.TR(me);
15
me.TD(me, 1, 4/5, e =
makeXonoticRadioButton
(2,
"menu_monsters_edit_spawn"
,
"zombie"
, _(
"Zombie"
)));
16
me.TD(me, 1, 4/5, e =
makeXonoticRadioButton
(2,
"menu_monsters_edit_spawn"
,
"spider"
, _(
"Spider"
)));
17
me.TD(me, 1, 4/5, e =
makeXonoticRadioButton
(2,
"menu_monsters_edit_spawn"
,
"golem"
, _(
"Golem"
)));
18
me.TD(me, 1, 4/5, e =
makeXonoticRadioButton
(2,
"menu_monsters_edit_spawn"
,
"mage"
, _(
"Mage"
)));
19
me.TD(me, 1, 4/5, e =
makeXonoticRadioButton
(2,
"menu_monsters_edit_spawn"
,
"wyvern"
, _(
"Wyvern"
)));
20
me.TR(me);
21
me.TDempty(me, 0.2);
22
me.TD(me, 1, 0.75, e =
makeXonoticCommandButton
(_(
"Spawn"
),
'0 0 0'
,
"spawnmob $menu_monsters_edit_spawn $menu_monsters_edit_movetarget"
, 0));
23
me.TD(me, 1, 0.75, e =
makeXonoticCommandButton
(_(
"Remove"
),
'0 0 0'
,
"killmob"
, 0));
24
me.TR(me);
25
me.TD(me, 1, 0.75, e =
makeXonoticCommandButton
(_(
"Move target:"
),
'0 0 0'
,
"editmob movetarget $menu_monsters_edit_movetarget"
, 0));
26
me.TD(me, 1, 3.25/4, e =
makeXonoticRadioButton
(3,
"menu_monsters_edit_movetarget"
,
"1"
, _(
"Follow"
)));
27
me.TD(me, 1, 3.25/4, e =
makeXonoticRadioButton
(3,
"menu_monsters_edit_movetarget"
,
"2"
, _(
"Wander"
)));
28
me.TD(me, 1, 3.25/4, e =
makeXonoticRadioButton
(3,
"menu_monsters_edit_movetarget"
,
"3"
, _(
"Spawnpoint"
)));
29
me.TD(me, 1, 3.25/4, e =
makeXonoticRadioButton
(3,
"menu_monsters_edit_movetarget"
,
"4"
, _(
"No moving"
)));
30
me.TR(me);
31
me.TD(me, 1, 4, e =
makeXonoticTextLabel
(0, _(
"Colors:"
)));
32
me.TR(me);
33
me.TD(me, 1, 0.75, e =
makeXonoticCommandButton
(_(
"Set skin:"
),
'0 0 0'
,
"editmob skin $menu_monsters_edit_skin"
, 0));
34
me.TD(me, 1, 1.25, e =
makeXonoticSlider
(0, 99, 1,
"menu_monsters_edit_skin"
));
35
36
me.gotoRC(me, me.rows - 1, 0);
37
me.TD(me, 1, me.columns, e =
makeXonoticButton
(_(
"OK"
),
'0 0 0'
));
38
e.onClick =
Dialog_Close
;
39
e.onClickEntity = me;
40
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
makeXonoticCommandButton
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
Definition
commandbutton.qc:11
commandbutton.qh
XonoticMonsterToolsDialog_fill
void XonoticMonsterToolsDialog_fill(entity me)
Definition
dialog_monstertools.qc:8
dialog_monstertools.qh
Dialog_Close
void Dialog_Close(entity button, entity me)
Definition
dialog.qc:7
makeXonoticButton
entity makeXonoticButton(string theText, vector theColor)
Definition
button.qc:10
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition
textlabel.qc:3
textlabel.qh
makeXonoticRadioButton
entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
Definition
radiobutton.qc:10
radiobutton.qh
makeXonoticSlider
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition
slider.qc:10
slider.qh
menu
xonotic
dialog_monstertools.qc
Generated on
for Xonotic QuakeC by
1.14.0