Difference between revisions of "User talk:Scrivener07"
Jump to navigation
Jump to search
imported>Qazaaq |
imported>Qazaaq (→Possible F4SE UI Additions: new section) |
||
Line 8: | Line 8: | ||
This is my hot list for contributions I plan to submit. [[User:Scrivener07|Scrivener07]] ([[User talk:Scrivener07|talk]]) 2017-10-28T20:55:06 (EDT) | This is my hot list for contributions I plan to submit. [[User:Scrivener07|Scrivener07]] ([[User talk:Scrivener07|talk]]) 2017-10-28T20:55:06 (EDT) | ||
== Possible F4SE UI Additions == | |||
<source lang="papyrus"> | |||
; Returns whether the menu is registered | |||
bool Function IsMenuRegistered(string menu) native global | |||
struct MenuData | |||
int menuFlags | |||
int movieFlags | |||
int extendedFlags | |||
int depth | |||
endStruct | |||
bool Function RegisterCustomMenu(string menuName, string menuPath, string rootPath, MenuData mData) native global | |||
; Return value does not indicate the menu is ready, only that it sent the message | |||
bool Function OpenMenu(string menuName) native global | |||
; Return value does not indicate the menu is closed, only that it sent the message | |||
bool Function CloseMenu(string menuName) native global | |||
</source> | |||
<source lang="papyrus"> | |||
UI:MenuData mData = new UI:MenuData | |||
mData.menuFlags = 0x01 + 0x08 + 0x04 ; Pause Game, Enable Menu Control, Show cursor | |||
mData.movieFlags = 2 | |||
mData.extendedFlags = 1 ; Inherit menu color | |||
mData.depth = 6 | |||
If UI.RegisterCustomMenu("MyCustomMenu", "Something", "root1.Menu_mc", mData) | |||
UI.OpenMenu("MyCustomMenu") | |||
EndIf | |||
</source> |
Revision as of 00:04, 22 January 2018
Wiki Feedback
Hot List
- Add Use Report window.
- Add better pages on structs & more actual examples. Still not clear on when structs are most useful some people.
- Restore the enormous editors like Quest and Actor.
- Restore the Condition Functions.
- Expand papyrus pages to include both minimalistic and complete source code examples.
This is my hot list for contributions I plan to submit. Scrivener07 (talk) 2017-10-28T20:55:06 (EDT)
Possible F4SE UI Additions
; Returns whether the menu is registered
bool Function IsMenuRegistered(string menu) native global
struct MenuData
int menuFlags
int movieFlags
int extendedFlags
int depth
endStruct
bool Function RegisterCustomMenu(string menuName, string menuPath, string rootPath, MenuData mData) native global
; Return value does not indicate the menu is ready, only that it sent the message
bool Function OpenMenu(string menuName) native global
; Return value does not indicate the menu is closed, only that it sent the message
bool Function CloseMenu(string menuName) native global
UI:MenuData mData = new UI:MenuData
mData.menuFlags = 0x01 + 0x08 + 0x04 ; Pause Game, Enable Menu Control, Show cursor
mData.movieFlags = 2
mData.extendedFlags = 1 ; Inherit menu color
mData.depth = 6
If UI.RegisterCustomMenu("MyCustomMenu", "Something", "root1.Menu_mc", mData)
UI.OpenMenu("MyCustomMenu")
EndIf