Search found 10 matches

by vizman
Wed Feb 21, 2018 4:27 am
Forum: Geyser Layout Manager
Topic: Many toggle buttons
Replies: 1
Views: 12703

Many toggle buttons

Hello, I want to create many toggle buttons using f.e. Geyser.Label. Buttons task is to show/hide different layout elements.
I know I need variable storing toggle state. But f.e. if I need 100 buttons, i have to declare 100 different variables? Or is there other way?
by vizman
Wed Feb 21, 2018 4:07 am
Forum: Geyser Layout Manager
Topic: Container's height depending on width
Replies: 8
Views: 18123

Re: Container's height depending on width

I have done it and it works perfectly. --Map-- local maxWidth, maxHeight = getMainWindowSize() local mapContainerAspectRatio = 1.5 maxWidth = maxWidth*0.9 maxHeight = maxWidth/mapContainerAspectRatio function resizeMapContainer() local getWidth, getHeight = getMainWindowSize() maxWidth = getWidth*0....
by vizman
Mon Feb 19, 2018 10:24 pm
Forum: Geyser Layout Manager
Topic: Container's height depending on width
Replies: 8
Views: 18123

Re: Container's height depending on width

Yep, this method works as it should! So later i will try combine it with sysWindowResizeEvent you suggested before and let you know if it works together. Big thanks.
by vizman
Mon Feb 19, 2018 6:19 pm
Forum: Geyser Layout Manager
Topic: Container's height depending on width
Replies: 8
Views: 18123

Re: Container's height depending on width

If you want, check for temporary code. --Map-- local labelName = "mapContainer" local maxWidth = getMainWindowSize() local maxHeight = maxWidth*0.7 local aspectRatio = 1.5 function readjustWindowSize() local main_w, main_h = getMainWindowSize() local width, height = string.match(maxWidth,&...
by vizman
Mon Feb 19, 2018 6:08 pm
Forum: Geyser Layout Manager
Topic: Container's height depending on width
Replies: 8
Views: 18123

Re: Container's height depending on width

i see in documentation that: resizeWindow(name,width,height) Resizes a mini console, label, or floating User Windows. So it wont resize containers i guess. Your solution works for label but not for whole container. A bit complicated now. I guess there is no method for containers like myContainer:set...
by vizman
Mon Feb 19, 2018 3:59 pm
Forum: Geyser Layout Manager
Topic: Container's height depending on width
Replies: 8
Views: 18123

Re: Container's height depending on width

Thx, but it seems not working. Width is changing when resizing window but height is fixed to same value when changing f.e. only window horizontally. Here is screen https://i.imgur.com/Ysgry0l.jpg Ratio is much defferent than 1.5 used it this example. My goal is to keep ratio of container: f.e. 2:1, ...
by vizman
Mon Feb 19, 2018 12:19 pm
Forum: Geyser Layout Manager
Topic: Container's height depending on width
Replies: 8
Views: 18123

Container's height depending on width

F.e. i have such block of code: mapContainer = Geyser.Container:new({ name = "mapContainer", x = 0, y = 0, width = "90%", height = width/2 --it doesnt work }) How to make container that has width in % and height f.e. width/2. Width must be set in percentages and everytime window ...
by vizman
Tue Feb 13, 2018 9:22 am
Forum: Geyser Layout Manager
Topic: Script wont update?
Replies: 3
Views: 13812

Script wont update?

Hello, I have a liitle problem showing on screenshot:

1. Result of first simple script.
2. Result of second one.
Problem is code of first script was deleted but result is still on screen. Activate/deactivate doesnt change anything. What is happening here?
by vizman
Sat Feb 10, 2018 6:51 am
Forum: Scripts & Packages
Topic: QDarkStyleSheet theme for Mudlet (theming/skinning demo)
Replies: 14
Views: 26902

Re: QDarkStyleSheet theme for Mudlet (theming/skinning demo)

Ok, Mostly i have done it. https://i.imgur.com/9beaIzZ.jpg You can easly change colors by changing variables. local background_color = "#26192f" local background_color_lighter = "#362145" local background_color_hover = "#4a305b" local border_color = "#b8731b" ...
by vizman
Fri Feb 09, 2018 9:02 pm
Forum: Scripts & Packages
Topic: QDarkStyleSheet theme for Mudlet (theming/skinning demo)
Replies: 14
Views: 26902

Re: QDarkStyleSheet theme for Mudlet (theming/skinning demo)

Hello, I found here nice theme and want to change it more. Problem is i dont know many selectors, so i cant style several elements. Can you help me telling selectors i have to use for marked elements? Here is current code: local background_color = "#26192f" local background_color_hover = &...