Page 1 of 1

Center on Hex - action

Posted: Fri Aug 10, 2012 7:45 pm
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.

Re: Center on Hex - action

Posted: Sat Aug 11, 2012 1:26 pm
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?) )

Re: Center on Hex - action

Posted: Sat Aug 11, 2012 3:36 pm
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.

Re: Center on Hex - action

Posted: Sat Aug 11, 2012 3:41 pm
by VPaulus
fsx could you give an example. I'm not sure if I understood it either.

Re: Center on Hex - action

Posted: Sat Aug 11, 2012 5:31 pm
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

Re: Center on Hex - action

Posted: Sat Aug 11, 2012 6:25 pm
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. :)

Re: Center on Hex - action

Posted: Sat Aug 11, 2012 7:07 pm
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

Re: Center on Hex - action

Posted: Fri Aug 24, 2012 3:35 pm
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.)

Re: Center on Hex - action

Posted: Sat Aug 25, 2012 2:40 pm
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 2760 times

Re: Center on Hex - action

Posted: Sat Aug 25, 2012 4:38 pm
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.

Re: Center on Hex - action

Posted: Sat Aug 25, 2012 6:00 pm
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?

Re: Center on Hex - action

Posted: Sat Aug 25, 2012 6:38 pm
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

Re: Center on Hex - action

Posted: Sat Aug 25, 2012 9:05 pm
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.

Re: Center on Hex - action

Posted: Sun Aug 26, 2012 8:27 am
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!