Author Topic: SCI1.1 Where are the icon verbs set up?  (Read 955 times)

0 Members and 1 Guest are viewing this topic.

Offline MusicallyInspired

SCI1.1 Where are the icon verbs set up?
« on: June 17, 2015, 12:37:29 AM »
1) I'm trying to get rid of the Command verb icon. I'm commenting it out everywhere I see it in the scripts but it still exists as a global verb in Messages that I can't get rid of. How can you delete global verbs?

2) Also, even though I've removed all references to V_COMMAND and icon4 from the scripts, when cycling through icons with rightclick it gets to the arrow for some reason and then when I go to click something with it I get an Oops! error message crash.

3) Also after removing V_COMMAND and icon4 everywhere I could find, when I hover over the iconbar the icons all line up properly nicely but the inventory bag button is masked/greyed out, even though I have an inventory object. Clicking on it does nothing. Looking through the icon verb mask codes but not making sense of it yet...
« Last Edit: June 17, 2015, 12:56:31 AM by MusicallyInspired »


Brass Lantern Prop Competition

Offline troflip

Re: SCI1.1 Where are the icon verbs set up?
« Reply #1 on: June 17, 2015, 01:41:39 AM »
1) I'm trying to get rid of the Command verb icon. I'm commenting it out everywhere I see it in the scripts but it still exists as a global verb in Messages that I can't get rid of. How can you delete global verbs?

Surprise! That functionality doesn't exist yet! You can just delete it directly from the Verbs.sh file for now.

2) Also, even though I've removed all references to V_COMMAND and icon4 from the scripts, when cycling through icons with rightclick it gets to the arrow for some reason and then when I go to click something with it I get an Oops! error message crash.

I suspect there are some places where I didn't replace 24 with V_COMMAND maybe? Let me see what happens if I try to remove it.
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline troflip

Re: SCI1.1 Where are the icon verbs set up?
« Reply #2 on: June 17, 2015, 01:45:54 AM »
3) Also after removing V_COMMAND and icon4 everywhere I could find, when I hover over the iconbar the icons all line up properly nicely but the inventory bag button is masked/greyed out, even though I have an inventory object. Clicking on it does nothing. Looking through the icon verb mask codes but not making sense of it yet...

Clearly some code expects 9 icons across the top, and assumes that at a certain index is the current inventory item (which will be greyed out)... but you removed icon4, so now it's the briefcase.

From looking at iconi.sc, it looks like if the signal property on the icon has $0004, then it will be disabled. Look at the disable method.

Also, looking in main.sc, there are places that assume things about the index of items in the icon bar. Look at the handsoff method. Actually, look at handsOn. It enables/disables icons in the icon bar based on their index. And if there's no "curInvIcon", then it disables the icon at position 5. So there's your answer.


I think the easiest thing for now is to keep a "blank" icon4 there, and ensure it's disable on handson, and also where the sq5IconBar is set up (currently it just disables index 5, you would add 4 here too). That will solve the right-click cycling issue too. Apparently right-click just cycles through enabled icons.
« Last Edit: June 17, 2015, 02:17:18 AM by troflip »
Check out my website: http://icefallgames.com
Groundhog Day Competition


SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.1 seconds with 22 queries.