scp-fs2open / scp-fs2open/fs2open.github.com

[FR] Aspect Ratio specific Origins/Offsets.

Open
#3,546 4 comments 0 reactions 0 assignees View on GitHub
enhancement HUD
Dominant language
C++
Stars
487
Forks
184
Avg merge
3d 9h
Merged PRs (30d)
44

Description

Currently, if a modder 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 the table if they 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.

Instead of having separate entries for the same gauges with different aspects as shown in this example:

#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

There could be just one entry with multiple origins and offsets:

#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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.