Le 02/09/2010 à 00:03, Avery White a écrit :
> Alain,
> 
Hi again Avery
(i reply on the list...)

> I think I figure out most of the things I had mentioned in my previous
> email. As I had said before, I'm trying to take out the fire functionality.
> On the simulation side, I think I have everything done. However, on the
> graphics side...it's proving to be more challenging. What is the user-menu
> on the left side of the screen called? I'm trying to remove the firestation
> entity (Monument, health, sports field, etc).

The UI is described in xml files located in /data/gui

the main toolbar is in /data/gui/buttonpanel.xml
and related actions are in /src/lincity-ng/ButtonPanel.cpp

> 
> To do this, I've commented out the firestation group in "lintypes.cpp" 

> (and
> the GROUP_FIRESTATION variable in a variety of other places)...but this only
> moves the descriptions around (i.e. now the "firestation" is gone, but
> places a monument instead...like the array just went back to the first
> element (which is monument in that menu), consequently, "Sports Field" is
> now "Shanty Town"...which is the next group listed in lintypes.cpp, near
> line 400). So the behavior I'm getting is pseudo-predictable. 

oh oh !
As you saw you should not modify lintypes.cpp, because it a declaration
with initialisation :
  struct GROUP main_groups[NUM_OF_GROUPS] = {
  ...
  }
If you comment out some part, the count will change, so you'll need to 
change all the numbers in groups.h and modify all saved files accordingly!

You should just leave it untouched, or add your new builings at the end of
the list (and in groups.h ...)

> I just wish I
> could eliminate the graphic entirely. Any thoughts would be appreciated.

I am not sure i understand what you want:
- use a saved game and replace all existing firestations by (let's say) trees
or 
- de-activate firestations (and supress them from tools) but keep their graphics
if some exists (as they are nice buildings :-) )


Alain
_______________________________________________
Lincity-ng-devel mailing list
Lincity-ng-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/lincity-ng-devel

Reply via email to