Custom ingame UI elements

All other Source.Python topics and issues.
User avatar
khaimovmr
Member
Posts: 52
Joined: Fri Aug 25, 2017 3:15 am
Contact:

Custom ingame UI elements

Postby khaimovmr » Sat Jan 18, 2020 5:38 pm

I'm wondering if there's a possibility to add a custom menu, or other interactive flat surface element?

Would be great to have an HTML-based one, for example. That have an ability to popup in the game without exiting to the main game menu. The old, numbered CS menus are just too obsolete and narrow in functionality.

For the couple of examples:
1. I didn't find the way to create a comfy interactive menu, that doesn't force you to operate by the numbered items and have a pagination by so few items on the page.
2. I didn't see the way create the menu with the icons on every item.

So, did you, guys, tried to solve this kind of problem yourself? Any luck on your side here? :)
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Custom ingame UI elements

Postby L'In20Cible » Sun Jan 19, 2020 1:44 am

You can have a look at how iPlayer did for Source.Python.Admin: https://github.com/Source-Python-Dev-Te ... thon.Admin

User avatar
Hymns For Disco
Member
Posts: 32
Joined: Wed Nov 22, 2017 7:18 am
Contact:

Re: Custom ingame UI elements

Postby Hymns For Disco » Sun Jan 19, 2020 4:00 am

L'In20Cible wrote:You can have a look at how iPlayer did for Source.Python.Admin: https://github.com/Source-Python-Dev-Te ... thon.Admin

https://www.youtube.com/watch?v=84HMc5G76ww

MOTD window feature has been removed from CS:GO some time ago in the Panorama UI overhaul
User avatar
Hymns For Disco
Member
Posts: 32
Joined: Wed Nov 22, 2017 7:18 am
Contact:

Re: Custom ingame UI elements

Postby Hymns For Disco » Sun Jan 19, 2020 4:22 am

khaimovmr wrote:I'm wondering if there's a possibility to add a custom menu, or other interactive flat surface element?
Would be great to have an HTML-based one, for example.

Really depends on the game. Some games have the MOTD window letting the player open an HTML page, but as stated this is removed from CS:GO. Even still with that option, it's not really integrated into the game directly as you would have to get the web page to communicate with the web server, and the web server in turn communicates with the game server to carry out actions. You could have the web server itself directly hosted from the server with a plugin and cut out the second step, but honestly I can't tell you if that's a good or bad idea. I can imagine some issues with verifying player identity (just matching the IP address maybe is not the best idea), security in general. Anyways, this route doesn't necessarily require the MOTD page in game, players can just use a standard web browser, like in the Steam overlay for instance, its all the same functionally.

khaimovmr wrote:The old, numbered CS menus are just too obsolete and narrow in functionality.

Narrow, yes. But certainly not obsolete. You can add a quick way for a player to choose an action and when to execute it. If you want them to be able to give their own input, then listen for a chat message. You effectively have all the flexibility of a CLI to play with here

Remember, we're generally talking about real-time FPS games here, and an old engine. If you want a dynamic way to create rich interactible flat surfaces, with html, a web page is what you're looking for.

If the player actually needs to be interacting with the game and your menu simultaneously, then just give them a radio menu as its intended for this purpose, it doesn't get in the way and lets a player quickly respond to something with a single press. If not, you can ask them to switch to a web browser to use a more sophisticated interface.

Unfortunately, as much as you or I can wish otherwise, what you're asking for is not really possible in current source engine games without client side modding.
Last edited by Hymns For Disco on Sun Jan 19, 2020 4:24 am, edited 1 time in total.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Custom ingame UI elements

Postby L'In20Cible » Sun Jan 19, 2020 4:24 am

Hymns For Disco wrote:
L'In20Cible wrote:You can have a look at how iPlayer did for Source.Python.Admin: https://github.com/Source-Python-Dev-Te ... thon.Admin

https://www.youtube.com/watch?v=84HMc5G76ww

MOTD window feature has been removed from CS:GO some time ago in the Panorama UI overhaul

R.I.P :frown:
User avatar
khaimovmr
Member
Posts: 52
Joined: Fri Aug 25, 2017 3:15 am
Contact:

Re: Custom ingame UI elements

Postby khaimovmr » Sun May 09, 2021 4:45 pm

Does anybody have any info on such feature in Source 2 (Dota 2, for example)?
I'm hoping it'll be revived in newer versions, considering the myriad of features it'll bring back.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 34 guests