Author Topic: REQUEST/ASK: Aspect Ratio specific Origins/Offsets.  (Read 197 times)

0 Members and 1 Guest are viewing this topic.

Offline DefCynodont119

  • 29
  • I should put something witty here- but not this. .
    • Steam
REQUEST/ASK: Aspect Ratio specific Origins/Offsets.
Currently, if someone wants to make a HUD that fits different aspect ratios, (EG: one for full and one for wide) they have to put in "$Required Aspect:" at the start of the Hud_gauges table and more or less copy the entire table with "$Required Aspect:" again, That makes it an awful lot of work to edit/add to if you have lots of custom gauges and/or multiple HUDs.

To make this easier, I was wondering if it could be possible to add this functionality for the Origin and Offset settings themselves.

So instead of having separate entries for the same gauges with different aspects:

Code: [Select]
#Gauge Config
 $Base:              (1024, 768)
 $Required Aspect:           Full Screen
 $Gauges:
  +Custom:
   Origin:  (0.5,0.5)
   Offset: (-256, -250)
   Name:           examplegauge
   Text:
   Gauge Type:          CENTER_RETICLE
   Slew:            NO
   Active by default:         NO
   Filename:           examplegauge

;;----------------------------------------------

#Gauge Config   
 $Base: (1440,900) 
 $Required Aspect: Wide Screen   
 $Gauges:   
  +Custom: 
   Position:  (464,236)
   Origin:  (0.3,0.6)
   Offset: (-254, -255)
   Name: examplegauge
   Text:
   Gauge Type:  CENTER_RETICLE
   Slew:  NO
   Active by default:  NO
   Filename:  examplegauge

We could use just one entry with multiple origins and offsets:

Code: [Select]
#Gauge Config
 $Base: (1440, 900)
 $Gauges:
 +Custom:
   Origin-4/9:          (0.5,0.5)
   Offset-4/9: (-256, -250)
   Origin-5/4:          (0.3,0.6)
   Offset-5/4: (-254, -255)
   Name:           examplegauge
   Text:
   Gauge Type:          CENTER_RETICLE
   Slew:            NO
   Active by default:         NO
   Filename:           examplegauge


Is this doable? It does not have to work exactly like this, the idea is just to make it so we only need one entry for multiple Aspect settings insted of one for each.
My gift from Freespace to Cities Skylines:  http://steamcommunity.com/sharedfiles/filedetails/?id=639891299