Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- path='Settings/Interface/Visibility'
- ShTick2( 'Visibility widgets', {
- {name = 'Outline',key='visOutline', desc='Adds cartoon-like outline to units. Mutually exclusive with Halo', hotkey=nil},
- {name = 'Halo',key='visHalo', desc='Adds halo effect to units. Mutually exclusive with Outline', hotkey=nil},
- },
- function(self)
- local key = self.value
- if key == 'visOutline' then
- spSendCommands{"luaui disablewidget Halo","luaui enablewidget Outline"}
- elseif key == 'visHalo' then
- spSendCommands{"luaui disablewidget Outline","luaui enablewidget Halo"}
- end
- end
- )
- ShLabel('Various')
- AddOption({
- name = 'XRayShader',
- type = 'bool',
- OnChange = function(self) Spring.SendCommands{"luaui togglewidget XRayShader"} end,
- } )
- AddOption({
- name = 'XRayHaloSelections',
- type = 'bool',
- OnChange = function(self) Spring.SendCommands{"luaui togglewidget XRayHaloSelections"} end,
- } )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement