1
SCI Syntax Help / Re: Beginner's question: why won't this compile?
« on: January 16, 2019, 03:10:40 PM »
So, next challenge was to see if I could change the colors of the menubar. I guess the file MenuBar.sc would be a good place to look. Call me naive, but I expected it to be easy, like, just change two variables or something like that...
It seems... I was wrong:
---
(MENU_COLOURS
(= wndCol 16)
(while (and (u> wndCol 15) (!= wndCol -1))
(= wndCol (GetNumber {New Text Color: (0-15)}))
)
(if (!= wndCol -1)
(= wndBack 16)
(while
(or
(and (!= wndBack -1) (u> wndBack 15))
(== wndCol wndBack)
)
(= wndBack (GetNumber {New Background Color: (0-15)}))
)
(if (!= wndBack -1)
(= gWndColor wndCol)
(= gWndBack wndBack)
(gTheWindow color: gWndColor back: gWndBack)
)
)
)
---
Okay, I have no clue what I should change...
Is there a demo or template game that comes with documented code?
It seems... I was wrong:
---
(MENU_COLOURS
(= wndCol 16)
(while (and (u> wndCol 15) (!= wndCol -1))
(= wndCol (GetNumber {New Text Color: (0-15)}))
)
(if (!= wndCol -1)
(= wndBack 16)
(while
(or
(and (!= wndBack -1) (u> wndBack 15))
(== wndCol wndBack)
)
(= wndBack (GetNumber {New Background Color: (0-15)}))
)
(if (!= wndBack -1)
(= gWndColor wndCol)
(= gWndBack wndBack)
(gTheWindow color: gWndColor back: gWndBack)
)
)
)
---
Okay, I have no clue what I should change...
Is there a demo or template game that comes with documented code?