Center on Hex - action

Open beta forum.

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

Post Reply
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Center on Hex - action

Post by fsx »

Could it be that the center on hex action not works at the start of the first turn (of the side starts)?
I tried before and after a message action.

If I try it at the start of turn 2 it works.
huertgenwald
2nd Lieutenant - Panzer IVF/2
2nd Lieutenant - Panzer IVF/2
Posts: 696
Joined: Wed Oct 05, 2011 6:39 pm
Location: Eifel / south of Aachen

Re: Center on Hex - action

Post by huertgenwald »

Ich verstehe Deine Frage nicht. (Don't understand your question)

Könntest Du Dein Anliegen etwas ausführlicher umformulieren (in Deutsch) ? (Could you please rephrase your request somewhat more elaborately (in german?) )
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Re: Center on Hex - action

Post by fsx »

Hallo!

Habe einen Trigger erstellt.
Bedingung Zug [1,-1]. Ausführung zu Beginn des Axis-Zuges.
Aktionen: CenterOnHex (10,18); Message

Die Message ist da, aber das Zentrieren passiert nicht. Auch nicht, wenn es nach der Message steht.
Für [2,-1] ist das okay.
VPaulus
Slitherine
Slitherine
Posts: 8326
Joined: Mon Dec 27, 2010 8:33 pm
Location: Portugal

Re: Center on Hex - action

Post by VPaulus »

fsx could you give an example. I'm not sure if I understood it either.
huertgenwald
2nd Lieutenant - Panzer IVF/2
2nd Lieutenant - Panzer IVF/2
Posts: 696
Joined: Wed Oct 05, 2011 6:39 pm
Location: Eifel / south of Aachen

Re: Center on Hex - action

Post by huertgenwald »

Translation of fsx's post (since i know nothing about map creation):

Created a trigger.
Condition for round [1,-1]. To be executed at the beginning of the axis draw.
Action: CenterOnHex (10,18); Message ("some text")

Message pops up, but the centering doesn't happen. Doesn't happen either, if CenterOnHex put behind message statement.
For [2,-1] that's okay (don't know the meaning of that ?? :shock: )

HtH
Tarrak
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 1183
Joined: Mon Jul 11, 2011 11:01 pm

Re: Center on Hex - action

Post by Tarrak »

huertgenwald wrote:T
Condition for round [1,-1]. To be executed at the beginning of the axis draw.
The correct translation wold be: "to be executed at the beginning of the axis turn." Draw doesn't make much sense in this context afaik tho my my english is far from perfect. :)
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Re: Center on Hex - action

Post by fsx »

Thanks to all for translate my "english" and german.
[2,-1] : executing the trigger in turn 2

Second question: If I make a message including a image, the image is in the middle of the window between text (below and above)

I wrote into the message-window of scenario editor

Code: Select all

TEXT....

<img src="..\Graphics\Units\Bf_109.png" />
In the message box you see
TEXT-part 1
IMAGE
TEXT-part2
uran21
Panzer Corps Map Designer
Panzer Corps Map Designer
Posts: 2318
Joined: Thu Dec 02, 2010 8:34 pm

Re: Center on Hex - action

Post by uran21 »

fsx wrote:Could it be that the center on hex action not works at the start of the first turn (of the side starts)?
I tried before and after a message action.

If I try it at the start of turn 2 it works.
Indeed center on hex action does not work at the start of the first turn.

Regarding your experiment with text and image in the message I got different result, first text than image bellow it. (See picture attached.)
Attachments
textimg.GIF
textimg.GIF (53 KiB) Viewed 2776 times
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Re: Center on Hex - action

Post by fsx »

Message-Text:

Code: Select all

Das OKW stellt Ihnen diverse kampferprobte Einheiten zur Verfügung.
Ihre Heeresgruppe wird durch das Jägdgeschwader xx mit yyyyyy yyyyyyyyy verstärkt.

<img src="..\Graphics\Units\bf_109e.png" />
message.jpg
message.jpg (143.07 KiB) Viewed 2759 times
uran21
Panzer Corps Map Designer
Panzer Corps Map Designer
Posts: 2318
Joined: Thu Dec 02, 2010 8:34 pm

Re: Center on Hex - action

Post by uran21 »

You are right, now I have the same effect. Try with this solution:

Code: Select all

Das OKW stellt Ihnen diverse kampferprobte Einheiten zur Verfügung.
Ihre Heeresgruppe wird durch das Jägdgeschwader xx mit yyyyyy yyyyyyyyy verstärkt.
<p>
<img src="C:\Program Files\Slitherine\Panzer Corps\Graphics\Units\2_cm_FlaK_38.png" />
Note the <p> tag between text and message.
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Re: Center on Hex - action

Post by fsx »

Thank you, uran21!

I dont know html - language or xml. I only use copy&paste and try&error for my changes.
If you have some questions or remarks about the features used at DMP-Ostfront (new briefing style with tabs, newturn & deploy with pictures, longer names for units and unittypes at the statbase and buy-screen) ask me.

My question for the message-window: How can I make it, that the text "flows" around the picture?
chief
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 126
Joined: Thu Jan 13, 2011 6:24 pm
Location: central Florida

Re: Center on Hex - action

Post by chief »

fsx just for info: reference your comment on HTML above, a while back I put in a search on GOOGLE for "HTML" and I found an excellent primer you might want to look at, it was in English, but I'm sure you could still understand what they are doing by examples. Hope this helps. Thanks for all your fine work also
uran21
Panzer Corps Map Designer
Panzer Corps Map Designer
Posts: 2318
Joined: Thu Dec 02, 2010 8:34 pm

Re: Center on Hex - action

Post by uran21 »

I am not web designer either but effect you are searching for could be achieved on the following way:

Code: Select all

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccccccccccccccccccccccccccccccccccc
<p>
<img src="C:\Program Files\Slitherine\Panzer Corps\Graphics\Units\2_cm_FlaK_38.png"  style="float: left;"/>

Das OKW stellt Ihnen diverse kampferprobte Einheiten zur Verfügung.
Ihre Heeresgruppe wird durch das Jägdgeschwader xx mit yyyyyyyyyyyyyyyverstärkt.
Check the style="float: left;" within img src tag.
See attached picture for this effect.
Note also image goes beyond borders of the message box and placement of OK button is not in the center.
Attachments
floatingtext.GIF
floatingtext.GIF (56.85 KiB) Viewed 2748 times
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Re: Center on Hex - action

Post by fsx »

Thanks for all feedback and hints!

I found some html-sites on internet.
I am searching for an tool, that shows me syntax errors. At internet I found some online checker. One of them I used. Only the "space" the tool dont knows.
Programmers in the company I work for using an editor that shows (with colors and lines) for example begin-end-items connected together.. But its for python, not html.

For a text, that is "shorter" than the picture (as in the post above) , I would use "table". It would place the OK button right.

Thanks again!
Post Reply

Return to “Panzer Corps Open Beta”