Question for programming/HTML geniuses

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Design, Panzer Corps Moderators

Post Reply
bebro
Slitherine
Slitherine
Posts: 4577
Joined: Sun Nov 19, 2006 12:50 pm

Question for programming/HTML geniuses

Post by bebro »

Does anybody know if it is possible to change the HTML UI files so that the "more campaigns" selection comes up right when clicking "new game" from the main title screen?

In a standard game this would bring you to the campaign selection, where you either select to play PzC cams or custom stuff via the "more..." button.

But GME mods hardly need the extra selection, since they mostly have only one campaign which is usually not compatible to others. So being able to select that custom campaign right from the main title would be nice....

I modified the campaign selection (UI/gamesetup.html) myself for my cam so that original campaigns are not shown. However, if it would be possible to select a custom campaign from the main screen this could just be skipped. I tried to edit the UI/startscreen html file but haven't figured out the right way yet.

Of course it's just a minor issue which would save a bit time...but maybe someone knows how to make it happen without too much trouble? Well, if not it's no biggie either, it's just one of those nice-to-have thingies...
Chris10
Captain - Bf 110D
Captain - Bf 110D
Posts: 890
Joined: Tue Mar 27, 2012 1:06 am
Location: Spain

Re: Question for programming/HTML geniuses

Post by Chris10 »

Bernd...since this is not supposed to work as you describe it (its an exe thingi tied to the html layout) things will always lead to the second selection screen from where you have to click...
no way to circumvent this...BUT...you can trick it ! :wink:
Just disable all other elements and make a custom UI (main.html) which only allows for one selection which then is
the default selection and activated once the campaign screen comes up...
Thats what Iam doin for PanzerCorps East...no other button available
I add you the 2 screens for PzC East but had to blacken them cause of spoiler :lol:
1: MAIN SCREEN
MULTIPLAYER button gone...ONLY LOAD,LIBRARY AND EXIT GAME available...NEW GAME leads to campaign screen
Image

2 CAMPAIGN SCREEN: ALL CAMPAIGN (PZC or AK) BUTTONS gone, MORE CAMPAIGNS button gone,
on final I will remove CAMPAIGN and SCENARIO button on the top (still need them for accessing testing settings)
...on release the only choice is to hit PLAY...

Image
bebro
Slitherine
Slitherine
Posts: 4577
Joined: Sun Nov 19, 2006 12:50 pm

Re: Question for programming/HTML geniuses

Post by bebro »

Thanks for the help :)

After fiddling around a bit I was able to build something similar. It does not show the original campaigns, tutorial etc., just has a button to open the campaign selection and some custom gfx for flavour :)
Post Reply

Return to “Panzer Corps : Scenario Design”