Skip to content

Commit 1f94b25

Browse files
authored
Add initial panorama world ui support (#264)
1 parent 438e70f commit 1f94b25

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

fgd/point/linked_portal_door.fgd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
appliesto(+USE_PORTALS)
33
studio("models/editor/angle_helper.mdl")
44
iconsprite("editor/portal_dual.vmt")
5+
orientedwidthheighthalf(width, height)
56
= linked_portal_door: "A door which is linked by a portal to another 'linked_portal_door' entity. " +
67
"Portal shots will pass through, and no effect appears at the edges."
78
[
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@PointClass base(BaseEntityPoint)
2+
size(-4 -4 -4, 4 4 4)
3+
color(200 200 0)
4+
orientedwidthheight(width, height)
5+
studio("models/editor/angle_helper.mdl")
6+
= panorama_screen: "A Panorama world screen entity."
7+
[
8+
layout(string) : "Layout File" : : "Panorama layout file to display, example: file://{resources}/layout/mycoollayout.xml"
9+
10+
width(integer) : "Panel Width in World (Green)" : 128 : "Width of the panel in units."
11+
height(integer) : "Panel Height in World (Blue)" : 128 : "Height of the panel in units."
12+
panel_scale(float) : "Panel Scale" : 32 : "Scale of the panel."
13+
14+
panel_class_name(string) : "Panel Class" : "" : "Class to append to the panel."
15+
panel_id(string) : "Panel ID" : "" : "ID to append to the panel."
16+
17+
start_active(boolean) : "Start Active" : "1" : "Whether or not the screen will start active."
18+
ignore_input(boolean) : "Ignore Input" : "0" : "NOTE: Does nothing right now!"
19+
interact_distance(float) : "Interact Distance" : "8" : "NOTE: Does nothing right now!"
20+
21+
// Inputs
22+
input SetActive(void) : "Make the panorama screen visible."
23+
input SetInactive(void) : "Make the panorama screen invisible."
24+
25+
input RunJSScript(string) : "Runs the specified javascript code or function on the panel."
26+
input AddCSSClass(string) : "Add a CSS class to the panel."
27+
input RemoveCSSClass(string) : "Remove a CSS class from the panel."
28+
]

fgd/point/vgui/vgui_screen.fgd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
@PointClass base(BaseEntityPoint)
22
size(-4 -4 -4, 4 4 4)
33
color(200 200 0)
4-
studioprop("models/editor/vgui_arrows.mdl")
5-
sphere(width)
6-
sphere(height)
4+
studio("models/editor/angle_helper.mdl")
5+
orientedwidthheight(width, height)
76
= vgui_screen: "A VGUI screen. Useful for in-world monitors."
87
[
98
panelname(string) : "Panel Name" : : "The type of display to show."

fgd/visgroups.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@
608608
* `point_camera`
609609
* `info_camera_link`
610610
* `prop_testchamber_sign`
611+
- Panorama
612+
* `panorama_screen`
611613
- Zones
612614
* `info_defrag_bonus`
613615
* `info_darknessmode_lightsource`

unify_fgd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
FEATURES: Dict[str, Set[str]] = {
5050
'P2CE': {'P2', 'HL2_ENTITIES', 'USE_VEHICLES', 'USE_PORTALS', 'USE_PAUSE', 'USE_NAV_MESH', 'USE_AI', 'USE_NEXTBOT', 'USE_SAVE_RESTORE',
51-
'USE_SLOWTIME', 'INST_IO', 'VSCRIPT', 'PROPCOMBINE', 'USE_TEAM', 'USE_MULTIPLAYER'},
51+
'USE_SLOWTIME', 'INST_IO', 'VSCRIPT', 'PROPCOMBINE', 'USE_TEAM', 'USE_MULTIPLAYER', 'PANORAMA'},
5252
'MOMENTUM': {'USE_PORTALS', 'INST_IO', 'PROPCOMBINE'},
5353
'TEMPLATEGAME': {'USE_PAUSE', 'USE_NAV_MESH', 'USE_AI', 'USE_NEXTBOT', 'USE_SAVE_RESTORE', 'INST_IO', 'VSCRIPT', 'PROPCOMBINE', 'USE_TEAM', 'USE_MULTIPLAYER'},
5454
}

0 commit comments

Comments
 (0)