Community

SCI Programming => SCI Syntax Help => Topic started by: MusicallyInspired on June 19, 2015, 04:23:17 PM

Title: SCI1.1 GUI grey box outlines on post-mouse hover *solved*
Post by: MusicallyInspired on June 19, 2015, 04:23:17 PM
So I've changed my GUI to a different colour, but when I hover over buttons with the mouse (in the control panel and icon bar specifically) there are these black square outlines that highlight each button. This is fine. But after I take the cursor off of the button the black box is replaced with a gray one and stays until I close the control panel or icon bar. This really clashes with the colour scheme I've got going on here. Any idea where to get rid of it? It's been plaguing me for a couple nights now.

(ignore the grey masks on the inventory buttons, I still haven't ironed that out yet from removing the COMMAND verb)
Title: Re: SCI1.1 GUI grey box outlines on post-mouse hover
Post by: Kawa on June 21, 2015, 05:20:41 AM
In globalpalettes.sc SetGlobalPalettes, gLowlightColor is set to the closest to (159, 159, 159). IconI have a lowlightcolor property which their init set to gLowLightColor. I've tried to change a given icon's highlight- and lowlightColor properties, but they didn't seem to "take".

The reason? There's this in SQ5 init:
Code: [Select]
(send gSq5IconBar:
add(icon0 icon1 icon2 icon3 icon4 icon6 icon7 icon8 icon9)
eachElementDo(#init)

//THESE TWO LINES!
eachElementDo(#highlightColor 0)
eachElementDo(#lowlightColor 5)
//They OVERRIDE whatever globalpalettes and the icons decide!

curIcon(icon0)
useIconItem(icon6)
helpIconItem(icon9)
walkIconItem(icon0)
disable(5)
state(3072)
disable()
)

And now you know :)