Popup
Popup
Are there any plans about a popuplib yet? And if so, what priority would it have on the to-do list?
http://www.sourcepython.com/forums/showthread.php?66-Scripting-questions&p=316&viewfull=1#post316
I've already asked about Menu's in this topic :/
edit: However never really got a clear answer
I've already asked about Menu's in this topic :/
edit: However never really got a clear answer
-Tuck
Just to give some ideas: https://www.assembla.com/code/menulib/subversion/nodes?rev=15 :P
A bump from the grave, but mainly because I'd love to see a popup/menu library rather sooner then later. And it seems useful for majority of plugins, as long you want the user to interact with it in some way at least.
It's one of the fews where writing your own solution just makes so little sense, because it will cause issues if multiple menus are shown "over" each other.
Edit: Even it is just an simple implementation, but that would do. Something among the lines of having it just autoconstruct and display. Especially because a more elaborate approach must be much more well thought out, or otherwise you kinda end up not using the features; for example, you might want to have a single menu, but serveral issues: the content is translated, there are dynamic parts in the menu (like variables, but also like access restriction for certain users, such as "press 1 to go to admin menu" - and this might not just be auth, but also context based; so essentially it should allow for an callback that returns True or False to display things); I found that not be possible to implement without workarounds in ES.
However just the core thing to manage and display stuff would be useful. I liked the approach in popuplib2 to treat an popup as list containing the lines. And then the differnent menus; subpaged menus are specially useful for example, so you just put your lines in and the outcome is whatever works (7. option lines usually, 8 is back 9 is next and 0 close, plus a common heading/footer)
It's one of the fews where writing your own solution just makes so little sense, because it will cause issues if multiple menus are shown "over" each other.
Edit: Even it is just an simple implementation, but that would do. Something among the lines of having it just autoconstruct and display. Especially because a more elaborate approach must be much more well thought out, or otherwise you kinda end up not using the features; for example, you might want to have a single menu, but serveral issues: the content is translated, there are dynamic parts in the menu (like variables, but also like access restriction for certain users, such as "press 1 to go to admin menu" - and this might not just be auth, but also context based; so essentially it should allow for an callback that returns True or False to display things); I found that not be possible to implement without workarounds in ES.
However just the core thing to manage and display stuff would be useful. I liked the approach in popuplib2 to treat an popup as list containing the lines. And then the differnent menus; subpaged menus are specially useful for example, so you just put your lines in and the outcome is whatever works (7. option lines usually, 8 is back 9 is next and 0 close, plus a common heading/footer)
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
Omega_K2 wrote:A bump from the grave, but mainly because I'd love to see a popup/menu library rather sooner then later. And it seems useful for majority of plugins, as long you want the user to interact with it in some way at least.
It's one of the fews where writing your own solution just makes so little sense, because it will cause issues if multiple menus are shown "over" each other.
Edit: Even it is just an simple implementation, but that would do. Something among the lines of having it just autoconstruct and display. Especially because a more elaborate approach must be much more well thought out, or otherwise you kinda end up not using the features; for example, you might want to have a single menu, but serveral issues: the content is translated, there are dynamic parts in the menu (like variables, but also like access restriction for certain users, such as "press 1 to go to admin menu" - and this might not just be auth, but also context based; so essentially it should allow for an callback that returns True or False to display things); I found that not be possible to implement without workarounds in ES.
However just the core thing to manage and display stuff would be useful. I liked the approach in popuplib2 to treat an popup as list containing the lines. And then the differnent menus; subpaged menus are specially useful for example, so you just put your lines in and the outcome is whatever works (7. option lines usually, 8 is back 9 is next and 0 close, plus a common heading/footer)
You cannot use 0 anymore they removed it.
And i had my own small popup thing because theres not that many source python script out yet (to interfere) and i was able to code something for my scripts, wasen't pretty but was simply to test it out
-Tuck
Tuck wrote:You cannot use 0 anymore they removed it.
And i had my own small popup thing because theres not that many source python script out yet (to interfere) and i was able to code something for my scripts, wasen't pretty but was simply to test it out
I thought they fixed that by now, guess they didn't then. At the very least you can press the buttons now
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
Tuck wrote:oh i didnt know this was a bug i was told it was hardcoded so it was not able to catch 0 but i tested this a very long time ago before the conversion from CamelCase
A bug in the CS:GO Engine, much like the unpressable keys when CS:GO came out. Not sure whether 0. has been fixed though, they did fix the unpressable keys however
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
- mister-man
- Member
- Posts: 70
- Joined: Wed Aug 29, 2012 7:09 pm
- Location: Germany
Whats up with ShowMenu?
Is it possible to use it?
Or isn't it recoded after redesign?
www.sourcepython.com/showwiki.php?title=Wiki:messages&highlight=saytext
Is it possible to use it?
Or isn't it recoded after redesign?
www.sourcepython.com/showwiki.php?title=Wiki:messages&highlight=saytext
mister-man wrote:Whats up with ShowMenu?
Is it possible to use it?
Or isn't it recoded after redesign?
www.sourcepython.com/showwiki.php?title=Wiki:messages&highlight=saytext
You "can" use it, but you should not use it for the same reason why you should not use es.menu.
- mister-man
- Member
- Posts: 70
- Joined: Wed Aug 29, 2012 7:09 pm
- Location: Germany
- mister-man
- Member
- Posts: 70
- Joined: Wed Aug 29, 2012 7:09 pm
- Location: Germany
btw I don't even know whether it's possible right now to propertly code a popuplib. As far I as I renember you somehow need to capture client commands, in ES this was possible with a special event ES registered, but not sure what the appropinate function/listener in the c api is, if it is even wrapped.
Edit: It just seems the engine refuses to return on ClientComamnd if the command was registered in the engine. So you're not getting callbacks on menuselect. Guess you need some kind of workaround for that
Edit: It just seems the engine refuses to return on ClientComamnd if the command was registered in the engine. So you're not getting callbacks on menuselect. Guess you need some kind of workaround for that
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm
If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 64 guests