Author Topic: Changing hotspots on the interface  (Read 1748 times)

0 Members and 1 Guest are viewing this topic.

Changing hotspots on the interface
I've figured out how to move where the animations are played for doors opening/closing.  And I've edited the original main hall mask and moved a mask and had hot spot change.  But I can't figure out how to create my own mask and have the game see the new hot spots.  Whenever I add my own mask I don't get anything in the game.  Is there a special way of making the mask or is there another table that I have missed somewhere?

 

Offline DragonClaw

  • Romeo Kilo India Foxtrot
  • 210
Changing hotspots on the interface
mainhall.tbl

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Changing hotspots on the interface
I think the masks use the pallet index for what they do, so even if it looks identical the game doesn't look at the color just the pallet index
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 
Changing hotspots on the interface
I know the first set is where the animation is played.  And the second set is the coordinates for the mouse when you right click through the doors.  I'ved edited the default mask and moved a mask around to another spot and in the game thats where the hot spot is.  Looking at the mask a little closer there is a grayish border around the masks.  This has something to do with how the masks work but I don't know.

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Changing hotspots on the interface
This is very subtle.  The mask is not pure black and white; it has different shades of white.  There are a bunch of colors that correspond to button indexes as follows: shade of white = 255 - button index.  So 255 = index 0, 254 = index 1, etc.

 
Changing hotspots on the interface
One thing I have noticed is each mask is a slightly different shade of white.  The values go from 255 to 250.  I tried just making six different boxes with the color changes but it doesn't work.  There seems to be a slight grey border around all of them.  It must be the trick to getting them to work but I don't know how you are supposed to use it.

 
Changing hotspots on the interface
We posted at the same time.  You know anything about the grey borders?

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Changing hotspots on the interface
I don't know about the grey borders.  But download the SCP media vp and have a look at the command briefing button mask.  I added new button masks in the PCX and new button indexes in the code, and there's no grey border.

  
Changing hotspots on the interface
I've got it to work now.  It must have been something to do with the fact I was editing the mask in Paint and saving it with Photoshop.