Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | chip programmers | 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