1
Themes / Re: Ambience HD theme [WIP]
« on: January 06, 2018, 10:28:41 AM »
I spy... Overwatch! Looks great, and good to see you back!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Nice theme. I really like the simplicity of it. One question though. Is there a specific line to adjust the opacity of the background overlay? It's so dark so snaps/flyers are barely visible.
function on_signal(str) {
if ( str == "custom1" ) {
if ( menu.visible ) hide_menu(); else show_menu();
return true;
}
return false;
}
Is it possible to make a sub-menu that popups when you press a specific button? Would be great to see a code snippet I can steal to incorporate into themes.
The layouts are already so crowded so I'm having a hard time imaging how to fit the buttons I want.
local scroller= ScrollingText.add( "This scroll can be stopped/started", 0, 0, fe.layout.width, 75, ScrollType.HORIZONTAL_BOUNCE );
fe.add_signal_handler(this, "on_signal");
function on_signal(str) {
if ( str == "custom1" ) {
//toggle horizontal scroll (use speed_y for vertical)
if ( scroller.settings.speed_x == 1 ) {
//stop scrolling
scroller.settings.speed_x = 0;
//reset text position (might want to change this depending on scroll type)
scroller.text.x = 0;
//reset to far right of scroll object
//scroller.text.x = scroller.surface.width
} else {
//start scrolling
scroller.settings.speed_x = 1;
}
return true;
}
return false;
}