Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,229 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
right to left fonts #43260
03/27/05 08:51
03/27/05 08:51
Joined: Mar 2005
Posts: 21
S
saina_co Offline OP
Newbie
saina_co  Offline OP
Newbie
S

Joined: Mar 2005
Posts: 21
I want to use the right to left font with seprate and strickable characters in strings.but not impossible.please help.

Re: right to left fonts [Re: saina_co] #43261
04/05/05 04:15
04/05/05 04:15
Joined: Mar 2005
Posts: 21
S
saina_co Offline OP
Newbie
saina_co  Offline OP
Newbie
S

Joined: Mar 2005
Posts: 21
please help me.

Re: right to left fonts [Re: saina_co] #43262
04/11/05 04:00
04/11/05 04:00
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
your question makes no sense at all

Re: right to left fonts [Re: Matt_Aufderheide] #43263
04/23/05 19:10
04/23/05 19:10
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline
Developer
Asse  Offline
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
A question from AUM 7:


F: Ich möchte das meine Zahlen im Panel rechtsbündig erscheinen wie im Bild:
0
10
100
A: Klicke hier um Alain Bregeon's Antwort zu laden.


And the answer:


A snipset for aum :

If you want a left align for display digit :


var font_width = 18;//your font width
var pos_left_digit = 150;//your pos x
var number_digit = 3;//your number digit
var indice;
var factor;

FONT panel_font, <bauhau20.bmp>, font_width, 30;
Panel test_panel
{
layer 3;
pos_x = pos_left_digit;
Pos_y = hier your y position
DIGITS 0,0,number_digit,panel_font,1,player.health;
FLAGS = visible,REFRESH,D3D;
}
--------
function align_left
{
test_panel.pos_x = pos_left_digit – (font_width*number_digit);
indice = 0;factor = 1;
while (indice < number_digit)
{
test_panel.pos_x += font_width *(player.health >= factor);
factor *= 10;
indice +=1;
}
}



A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1