Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#51 closed task (fixed)

allow for inv and minimap style switching

Reported by: Henrik Heimbuerger Owned by: MrWabbit
Priority: critical Milestone: 1.80
Component: Core Version: dev
Keywords: Cc:

Description

Currently, the CortUI installer will always install the basic parts of GlassHUD, e.g. the semi-transparent inventory, minimap and the extended target view on the in-flight map.

Should that be made selectable? If so, there are some technical issues to solve first.

Change History (14)

comment:1 Changed 15 years ago by MrWabbit

I propose yes.

Technically feasable, if you don't mind ugly solutions.

Simplest solution would be, I guess, to make three versions of both dialog_minimapstyle.mdl and dialog_inventorystyle.mdl for classic, greytones and GlassHUD huds, and simply have the installer pick one to put in the artwork folder.

so you have dialog_minimapstyle_classic.mdl, dialog_minimapstyle_greytones.mdl and dialog_minimapstyle_glasshud.mdl sitting in a package somewhere. During install user selects LessHUD, installer grabs dialog_minimapstyle_greytones.mdl and saves it as dialog_minimapstyle.mdl in Artwork.

There's that option. Also, i'd have to start looking into what Andon suggested about putting the artwork imports in dialog.mdl. Only i have the nasty suspicion that the artwork is what determines the menus sizes.


comment:2 Changed 15 years ago by Henrik Heimbuerger

That should be doable.

The question is then if it should be linked to the chosen HUD or a separate selection. I'm currently leaning towards the first option to keep the number of configuration options small.

Can you elaborate on the relationship between the greytones and GlassHUD styles please?

comment:3 Changed 15 years ago by MrWabbit

Owner: changed from Henrik Heimbuerger to MrWabbit
Status: newassigned

there is no relationship :)

The greytones menus are intended for use with lesshud (and to a lesser degree) Jelloshot, as they go well with those HUDs.

GlassHUD menus are intended specifically for GlassHUD Hud.

This is next on my list.

comment:4 Changed 15 years ago by MrWabbit

Status: assignedaccepted

comment:5 Changed 15 years ago by MrWabbit

Summary: Consider making the new GlassHUD core UI optionalallow for inv and minimap style switching

Err... also; the GlassHUD targetview should NOT be on the minimap, if GlassHUD is not selected.

And the smaller target info should not be on the minimap if GH is selected.

I'll look into that as well.

comment:6 Changed 15 years ago by MrWabbit

I'm partway a relatively graceful solution for this.

see http://www.freeallegiance.org/forums/index.php?autocom=blog&blogid=67&showentry=885 for example code.

wrt to the inventory menu:
I have the background images sorted out. The only things giving me a headache are armingbar.mdl and mountingbar.mdl; the little gauges that appear while arming and/or mounting a part.

Alleg refuses to load any other pic than the default SwitchImage? option.

wrt the minimap
I haven't worked on the minimap backgrounds yet.

comment:7 Changed 15 years ago by MrWabbit

i'm almost done here. need to streamline code a bit.

comment:8 Changed 15 years ago by SVN

New commit by MrWabbit? (revision [147]):
[fix for ticket #51] changed the entire mechanic behind this. The exe is now fed wholly transparent images from a folder called 'common' to make the menus with. Dialog.mdl supplies switched-in artwork to put behind those transparent menus. the inventory line items ( e.g. invafterburn.mdl, invchaff.mdl) supply the loading and mounting bars.

there is still a minor issue with the backgrounds for those mounting bars not switching in properly.

comment:9 Changed 15 years ago by SVN

New commit by MrWabbit? (revision [150]):
[correction to fix for ticket #51] changeset 147 deleted teamscreen.mdl. did this because AU seemed to make having teamscreen.mdl modded useless. Since this breaks the CortUI installer, i put it back in. making a ticket for teamscreen.mdl's removal from installer and CortUI.

comment:10 Changed 15 years ago by SVN

New commit by MrWabbit? (revision [151]):
[correction to fix for ticket #51] changeset 147 deleted missionbrief. also teamscreen. last because of brainfart.

comment:11 Changed 15 years ago by SVN

New commit by MrWabbit? (revision [152]):
[additional fix for #51] this artwork file was missing. Will allow further customizing of greytones menustyle in future.

comment:12 Changed 15 years ago by SVN

New commit by MrWabbit? (revision [153]):
[additional fix for #51] forgot to remove a little debugging helper string thingy.

comment:13 Changed 15 years ago by MrWabbit

Resolution: fixed
Status: acceptedclosed

i'm gonna go ahead and call this fixed.

comment:14 Changed 15 years ago by SVN

New commit by MrWabbit? (revision [154]):
[additional fix for #51] whoops. made a boo-boo.

Note: See TracTickets for help on using tickets.