ORG

quake.net.pl » Polskie Centrum Quake od 1998 roku



Wersja: Jasna / Ciemna

LOLCode

aiken

Artistic avatar

Od: 2002-04-02

Ranga: BFG Fragger

Dodano dnia: 2011-02-23 13:45:15

LOLCode to jezyk programowania wymyslony dla jaj. Wrzucam info, bo nawet dla tych co nie mieli stycznosci z programowaniem, moze sie on wydac smieszny z racji tego jakiej skladni sie uzywa.

Przyklady:
[code]HAI
CAN HAS STDIO?
PLZ OPEN FILE "FILEIO.TXT" ITZ "TehFilez"?
AWSUM THX
BTW #There is no standard way to output to files yet...
VISIBLE "Hello" ON TehFilez
BTW #There isn't a standard way to append to files either...
MOAR VISIBLE "World" ON TehFilez
GIMMEH LINES TehLinez OUTTA TehFilez
I HAS A SecondLine ITZ 1 IN MAH TehLinez
VISIBLE SecondLine
O NOES
VISIBLE "OH NOES!!!"
KTHXBYE
[/code]
[code]
HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
IZ VAR BIGGER THAN 10?
YARLY
BTW this is true
VISIBLE "BIG NUMBER!"
NOWAI
BTW this is false
VISIBLE "LITTLE NUMBER!"
KTHX
KTHXBYE
[/code]

Wiecej tutaj: http://lolcode.com/examples/examples

Oglaszam konkurs, kto napisze smieszniejszy program :D.

freak

Tumblr no5ofurwxe1rpwm80o1 250

Od: 2002-06-01

Ranga: Quad Damager

Dodano dnia: 2011-02-23 13:58:25

[code]

glhf

gg

[/code]

niniejszym temat uznaje za wyczerpany.

Panplayer1

8477

Od: 2003-12-08

Ranga: Newbie

Dodano dnia: 2011-02-26 21:42:00

Uważam że za dużo 4chana :D

Xsi

5838

Od: 2003-05-13

Ranga: BFG Fragger

Dodano dnia: 2011-02-26 21:54:08

Stare! :P

Alchemik

7874

Od: 2003-10-27

Ranga: Lightning Smasher

Dodano dnia: 2011-02-26 22:54:47

```

package pl.net.quake.board;

interface InternetForum{

public void ProcessNewThread(Thread thread);

}

interface Thread{

public void ProcessNewPost(Post post);

}

class Board implements InternetForum{

public void ProcessNewThread(Thread thread){

switch(type = thread.getType())

case type == NOOBQUESTION:

while(thread.length < 10){

 insert PostFactory.getPseudoFunnyPost() into thread;

 }

 thread.wait(Time.getHours(24));

 insert new Post("RTFM NOOB") into thread;

 thread.close();

break;

case type == QUAKELIVE_THREAD:

 while(true){

  insert PostFactory.getNostalgicQuake3Post() into thread;

  insert PostFactory.getIDDissPost() into thread;

 }     

break;

case type == QUAKE3_THREAD:

while(true){

 insert PostFactory.getDefaultQ3Post() into thread;

 if(thread.constains("CPMA RULES") && thread.constains("CPMA SUX"))

  new FlameWar(thread).start();

}     

break;

case type == DEMRUMRUS_THREAD:

thread.getAuthor().ban();

thread.delete();

break;

}

}

interface BoardUser {

public Post getCiekawePost();

public Post getInterestingPost();

public Post getPoliticalPost();

public Post getQuakePost();

public Post getImage() throws HotLinkException; //ostatnio jakoś czesto rzuca :D

}

```

Bym napisał kilka klas implementujących BoardUser, ale się trochę boję :X

_Vh

5956

Od: 2003-05-21

Ranga: Quad Damager

Dodano dnia: 2011-02-27 00:29:41

Alchemik, jak Ci sie nudzi w sprawie kodowania, to napisz do Aikena, mysli chlopak nad nowym serwisem :>

Единый, могучий Советский Союз!

4lko

9081

Od: 2004-01-24

Ranga: Quad Damager

Dodano dnia: 2011-02-27 02:33:19

Alchemik:

Get a life, dude. Srsly ;p

Whaddya mean I ain't kind ? Just not your kind.

Our 'hit'? This is our 'hit'. This next song's our 'hit'. You won't hear this next song anywhere but in your goddamned car, at home, or on this fucking stage, and that's the way it should be.

floreq

20609

Od: 2010-08-07

Ranga: Newbie

Dodano dnia: 2011-02-27 03:54:37

ciekawe ilu uzytkownikow zrozumialo cos z tego tematu.

mieszkam w piwnicy

_Vh

5956

Od: 2003-05-21

Ranga: Quad Damager

Dodano dnia: 2011-02-27 04:09:40

przykro mi to mowic, ale raczej wiekszosc ;SDa

Единый, могучий Советский Союз!

Mav_8217

3846

Od: 2003-01-06

Ranga: Quad Damager

Dodano dnia: 2011-02-27 09:42:10

Ja niewiele i z tego wcale dumny nie jestem ;x

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 10:36:47

*Żeby trochę rozjaśnić ten temat, wkleję fragment kodu źródłowego z programu OSP2CPMA Config Converter, który kiedyś napisałem, pewnie część osób pamięta. Jest dostępny w necie: [www.quake.net.pl/?page=konwerter](../?page=konwerter)
*

Swoją drogą, chyba od teraz będę pisał na forum taką oto złotą czcionką. Fajna jest.

*Niestety caly kod nie mieści się w jednym poście, obcina :(
*

//OSP2CPMA Config Converter

//Autor: [M]aniek

//CKonwerter.cpp

//Klasa do konwersji

includeincludeinclude "CKonwerter.h"

CKonwerter::CKonwerter()

{

Init();

}
void CKonwerter::Init()

{

//ustawic takie defaultowe wartosci komend, jakie ustawia OSP

//po prawej musza byc tylko male litery

KomendyOSP[cf_CrosshairNames].name = "cf_crosshairnames";

KomendyOSP[cf_CrosshairNames].parametr = "12x12";

KomendyOSP[cf_Following].name = "cf_following";

KomendyOSP[cf_Following].parametr = "24x24";

KomendyOSP[cf_FragMsg].name = "cf_fragmsg";

KomendyOSP[cf_FragMsg].parametr = "16x16";

KomendyOSP[cf_PickupString].name = "cf_pickupstring";

KomendyOSP[cf_PickupString].parametr = "10x14";

KomendyOSP[cf_Scores].name = "cf_scores";

KomendyOSP[cf_Scores].parametr = "16x16";

KomendyOSP[cf_StatusBar].name = "cf_statusbar";

KomendyOSP[cf_StatusBar].parametr = "32x32";

KomendyOSP[cf_TeamChat].name = "cf_teamchat";

KomendyOSP[cf_TeamChat].parametr = "8x12";

KomendyOSP[cf_TeamCrosshairHealth].name = "cf_teamcrosshairhealth";

KomendyOSP[cf_TeamCrosshairHealth].parametr = "12x12";

KomendyOSP[cf_TeamOverlay].name = "cf_teamoverlay";

KomendyOSP[cf_TeamOverlay].parametr = "6x11";

KomendyOSP[cf_Vote].name = "cf_vote";

KomendyOSP[cf_Vote].parametr = "10x14";

KomendyOSP[cg_AltLightning_].name = "cg_altlightning";

KomendyOSP[cg_AltLightning_].parametr = "0";

KomendyOSP[cg_CrosshairSize].name = "cg_crosshairsize";

KomendyOSP[cg_CrosshairSize].parametr = "24";

KomendyOSP[cg_Draw3DIcons].name = "cg_draw3dicons";

KomendyOSP[cg_Draw3DIcons].parametr = "1";

KomendyOSP[cg_DrawAttacker].name = "cg_drawattacker";

KomendyOSP[cg_DrawAttacker].parametr = "1";

KomendyOSP[cg_DrawAmmoWarning].name = "cg_drawammowarning";

KomendyOSP[cg_DrawAmmoWarning].parametr = "1";

KomendyOSP[cg_DrawCrosshair_].name = "cg_drawcrosshair";

KomendyOSP[cg_DrawCrosshair_].parametr = "4";

KomendyOSP[cg_DrawFPS].name = "cg_drawfps";

KomendyOSP[cg_DrawFPS].parametr = "0";

KomendyOSP[cg_DrawIcons].name = "cg_drawicons";

KomendyOSP[cg_DrawIcons].parametr = "1";

KomendyOSP[cg_DrawPing].name = "cg_drawping";

KomendyOSP[cg_DrawPing].parametr = "0";

KomendyOSP[cg_DrawTeamOverlay].name = "cg_drawteamoverlay";

KomendyOSP[cg_DrawTeamOverlay].parametr = "0";

KomendyOSP[cg_DrawTimer].name = "cg_drawtimer";

KomendyOSP[cg_DrawTimer].parametr = "0";

KomendyOSP[cg_EnableOSPHUD].name = "cg_enableosphud";

KomendyOSP[cg_EnableOSPHUD].parametr = "1";

KomendyOSP[cg_EnemyColors_].name = "cg_enemycolors";

KomendyOSP[cg_EnemyColors_].parametr = "0";

KomendyOSP[cg_LagoMeter].name = "cg_lagometer";

KomendyOSP[cg_LagoMeter].parametr = "1";

KomendyOSP[cg_NoProjectileTrail].name = "cg_noprojectiletrail";

KomendyOSP[cg_NoProjectileTrail].parametr = "0";

KomendyOSP[cg_OldRail].name = "cg_oldrail";

KomendyOSP[cg_OldRail].parametr = "1";

KomendyOSP[cg_TeamChatHeight].name = "cg_teamchatheight";

KomendyOSP[cg_TeamChatHeight].parametr = "0";

KomendyOSP[cg_TeamChatTime].name = "cg_teamchattime";

KomendyOSP[cg_TeamChatTime].parametr = "3000";

KomendyOSP[ch_3WaveFont].name = "ch_3wavefont";

KomendyOSP[ch_3WaveFont].parametr = "0";

KomendyOSP[ch_CrosshairNamesLeft].name = "ch_crosshairnamesleft";

KomendyOSP[ch_CrosshairNamesLeft].parametr = "0";

KomendyOSP[ch_CrosshairColor_].name = "ch_crosshaircolor";

KomendyOSP[ch_CrosshairColor_].parametr = "white";

KomendyOSP[ch_DrawSpeed].name = "ch_drawspeed";

KomendyOSP[ch_DrawSpeed].parametr = "0";

KomendyOSP[ch_Graphs].name = "ch_graphs";

KomendyOSP[ch_Graphs].parametr = "1";

KomendyOSP[ch_InverseTeamChat].name = "ch_inverseteamchat";

KomendyOSP[ch_InverseTeamChat].parametr = "1";

KomendyOSP[ch_StatusBarFormat].name = "ch_statusbarformat";

KomendyOSP[ch_StatusBarFormat].parametr = "10";

KomendyOSP[ch_TeamCrosshairHealth].name = "ch_teamcrosshairhealth";

KomendyOSP[ch_TeamCrosshairHealth].parametr = "1";

KomendyOSP[ch_WeaponSwitch].name = "ch_weaponswitch";

KomendyOSP[ch_WeaponSwitch].parametr = "4";

KomendyOSP[cl_MouseAccel].name = "cl_mouseaccel";

KomendyOSP[cl_MouseAccel].parametr = "0";

KomendyOSP[Color1].name = "color1";

KomendyOSP[Color1].parametr = "4";

KomendyOSP[Color2].name = "color2";

KomendyOSP[Color2].parametr = "5";

KomendyOSP[Model].name = "model";

KomendyOSP[Model].parametr = "sarge/default";
KomendyOSP[r_RailSegmentLength].name = "r_railsegmentlength";

KomendyOSP[r_RailSegmentLength].parametr = "32";

KomendyOSP[r_RailCoreWidth].name = "r_railcorewidth";

KomendyOSP[r_RailCoreWidth].parametr = "6";

KomendyOSP[r_RailWidth].name = "r_railwidth";

KomendyOSP[r_RailWidth].parametr = "16";
KomendyOSP[rate_].name = "rate";

KomendyOSP[rate_].parametr = "25000";

KomendyOSP[snaps_].name = "snaps";

KomendyOSP[snaps_].parametr = "30";

KomendyOSP[cl_TimeNudge_].name = "cl_timenudge";

KomendyOSP[cl_TimeNudge_].parametr = "0";

KomendyOSP[cl_PacketDup_].name = "cl_packetdup";

KomendyOSP[cl_PacketDup_].parametr = "0";

//ustawic tylko nazwy HUDa

HUD[DEFAULT].name = "!DEFAULT";

HUD[DEFAULT].rect = RECT_(0, 0, 0, 0);

HUD[DEFAULT].fontsize = FONTSIZE(16, 16);

HUD[DEFAULT].font = ID;

HUD[DEFAULT].color = COLOR(1, 1, 1, 1);

HUD[DEFAULT].bgcolor = COLOR(0, 0, 0, 0);

HUD[DEFAULT].fade = COLOR(1, 1, 1, 1);

HUD[DEFAULT].angles = ANGLES(0, 0, 0, 0);

HUD[DEFAULT].textstyle = 1;

HUD[DEFAULT].textalign = R;

HUD[DEFAULT].time = 0; //time rowne 0 nie jest zapisywane!!!

HUD[DEFAULT].fill = false; //false nie sa zapisywane

HUD[DEFAULT].monospace = false;

HUD[DEFAULT].doublebar = false;

HUD[DEFAULT].draw3d = false;

HUD[DEFAULT].model = "";

HUD[DEFAULT].image = "";
for (int i = 1; i < HUDTypeSize; i++)

HUD[i] = HUD[DEFAULT];
HUD[Decorate1].name = "PreDecorate";

HUD[Decorate2].name = "PreDecorate";

HUD[Decorate3].name = "PreDecorate";

HUD[Decorate4].name = "PreDecorate";

HUD[Decorate5].name = "PreDecorate";

HUD[Decorate6].name = "PreDecorate";

HUD[Decorate7].name = "PreDecorate";

HUD[AmmoMessage].name = "AmmoMessage";

HUD[AttackerIcon].name = "AttackerIcon";

HUD[AttackerName].name = "AttackerName";

HUD[Chat1].name = "Chat1";

HUD[Chat2].name = "Chat2";

HUD[Chat3].name = "Chat3";

HUD[Chat4].name = "Chat4";

HUD[Chat5].name = "Chat5";

HUD[Chat6].name = "Chat6";

HUD[Chat7].name = "Chat7";

HUD[Chat8].name = "Chat8";

HUD[Console].name = "Console";

HUD[FlagStatus_NME].name = "FlagStatus_NME";

HUD[FlagStatus_OWN].name = "FlagStatus_OWN";

HUD[FollowMessage].name = "FollowMessage";

HUD[FPS].name = "FPS";

HUD[FragMessage].name = "FragMessage";

HUD[GameTime].name = "GameTime";

HUD[GameType].name = "GameType";

HUD[ItemPickup].name = "ItemPickup";

HUD[ItemPickupIcon].name = "ItemPickupIcon";

HUD[NetGraph].name = "NetGraph";

HUD[NetGraphPing].name = "NetGraphPing";

HUD[PlayerSpeed].name = "PlayerSpeed";

HUD[PowerUp1_Icon].name = "PowerUp1_Icon";

HUD[PowerUp2_Icon].name = "PowerUp2_Icon";

HUD[PowerUp3_Icon].name = "PowerUp3_Icon";

HUD[PowerUp4_Icon].name = "PowerUp4_Icon";

HUD[PowerUp1_Time].name = "PowerUp1_Time";

HUD[PowerUp2_Time].name = "PowerUp2_Time";

HUD[PowerUp3_Time].name = "PowerUp3_Time";

HUD[PowerUp4_Time].name = "PowerUp4_Time";

HUD[RankMessage].name = "RankMessage";

HUD[Score_Limit].name = "Score_Limit";

HUD[Score_NME].name = "Score_NME";

HUD[Score_OWN].name = "Score_OWN";

HUD[SpecMessage].name = "SpecMessage";

HUD[StatusBar_ArmorBar].name = "StatusBar_ArmorBar";

HUD[StatusBar_ArmorCount].name = "StatusBar_ArmorCount";

HUD[StatusBar_ArmorIcon].name = "StatusBar_ArmorIcon";

HUD[StatusBar_AmmoBar].name = "StatusBar_AmmoBar";

HUD[StatusBar_AmmoCount].name = "StatusBar_AmmoCount";

HUD[StatusBar_AmmoIcon].name = "StatusBar_AmmoIcon";

HUD[StatusBar_HealthBar].name = "StatusBar_HealthBar";

HUD[StatusBar_HealthCount].name = "StatusBar_HealthCount";

HUD[StatusBar_HealthIcon].name = "StatusBar_HealthIcon";

HUD[TargetName].name = "TargetName";

HUD[TargetStatus].name = "TargetStatus";

HUD[TeamCount_NME].name = "TeamCount_NME";

HUD[TeamCount_OWN].name = "TeamCount_OWN";

HUD[TeamIcon_NME].name = "TeamIcon_NME";

HUD[TeamIcon_OWN].name = "TeamIcon_OWN";

HUD[Team1].name = "Team1";

HUD[Team2].name = "Team2";

HUD[Team3].name = "Team3";

HUD[Team4].name = "Team4";

HUD[Team5].name = "Team5";

HUD[Team6].name = "Team6";

HUD[Team7].name = "Team7";

HUD[Team8].name = "Team8";

HUD[VoteMessageArena].name = "VoteMessageArena";

HUD[VoteMessageWorld].name = "VoteMessageWorld";

HUD[WarmupInfo].name = "WarmupInfo";

HUD[WeaponList].name = "WeaponList";
//ammowarning na 0 zawsze!

KomendyCPMA[cg_AltLightning].name = "cg_altlightning";

KomendyCPMA[cg_AltLightning].parametr = "0";

KomendyCPMA[cg_AmmoWarning].name = "cg_ammowarning";

KomendyCPMA[cg_AmmoWarning].parametr = "0";

KomendyCPMA[cg_DrawCrosshair].name = "cg_drawcrosshair";

KomendyCPMA[cg_DrawCrosshair].parametr = "11";

KomendyCPMA[cg_EnemyColors].name = "cg_enemycolors";

KomendyCPMA[cg_EnemyColors].parametr = "iiiii";

KomendyCPMA[cg_RailCoreWidth].name = "cg_railcorewidth";

KomendyCPMA[cg_RailCoreWidth].parametr = "2";

KomendyCPMA[cg_RailRingStep].name = "cg_railringstep";

KomendyCPMA[cg_RailRingStep].parametr = "32";

KomendyCPMA[cg_RailRingWidth].name = "cg_railringwidth";

KomendyCPMA[cg_RailRingWidth].parametr = "8";

KomendyCPMA[cg_RailStyle].name = "cg_railstyle";

KomendyCPMA[cg_RailStyle].parametr = "5";

KomendyCPMA[cg_Smoke_SG].name = "cg_smoke_sg";

KomendyCPMA[cg_Smoke_SG].parametr = "1";

KomendyCPMA[cg_SmokeRadius_RL].name = "cg_smokeradius_rl";

KomendyCPMA[cg_SmokeRadius_RL].parametr = "4";

KomendyCPMA[cg_SmokeRadius_GL].name = "cg_smokeradius_gl";

KomendyCPMA[cg_SmokeRadius_GL].parametr = "6";

KomendyCPMA[ch_CrosshairColor].name = "ch_crosshaircolor";

KomendyCPMA[ch_CrosshairColor].parametr = "y";

KomendyCPMA[ch_DrawWeaponSelect].name = "ch_drawweaponselect";

KomendyCPMA[ch_DrawWeaponSelect].parametr = "0";

KomendyCPMA[ch_SelfOnTeamOverlay].name = "ch_selfonteamoverlay";

KomendyCPMA[ch_SelfOnTeamOverlay].parametr = "0";

KomendyCPMA[Color].name = "color";

KomendyCPMA[Color].parametr = "77777";

KomendyCPMA[m_Accel].name = "m_accel";

KomendyCPMA[m_Accel].parametr = "0";
KomendyCPMA[rate].name = "rate";

KomendyCPMA[rate].parametr = "25000";

KomendyCPMA[snaps].name = "snaps";

KomendyCPMA[snaps].parametr = "30";

KomendyCPMA[cl_TimeNudge].name = "cl_timenudge";

KomendyCPMA[cl_TimeNudge].parametr = "0";

KomendyCPMA[cl_PacketDup].name = "cl_packetdup";

KomendyCPMA[cl_PacketDup].parametr = "0";

KomendyCPMA[cg_Nudge].name = "cg_nudge";

KomendyCPMA[cg_Nudge].parametr = "0";

KomendyCPMA[cg_XerpClients].name = "cg_xerpclients";

KomendyCPMA[cg_XerpClients].parametr = "0";

KomendyCPMA[cg_OptimiseBW].name = "cg_optimisebw";

KomendyCPMA[cg_OptimiseBW].parametr = "1";

KomendyCPMA[cg_LagHax].name = "cg_laghax";

KomendyCPMA[cg_LagHax].parametr = "-1";

KomendyCPMA[cg_Predict].name = "cg_predict";

KomendyCPMA[cg_Predict].parametr = "1";

KomendyCPMA[ch_File].name = "ch_file";

KomendyCPMA[ch_File].parametr = "hud";
}
void CKonwerter::Parsuj()

{

Init();
char bufor[500];

ifstream plik_in(s_path.c_str());
ofstream plik_out(d_path.c_str());

CCommand komenda;
if (plik_in)

do

{

plik_in.getline(bufor, sizeof(bufor));

komenda = Rozloz(bufor);

Zapisywarka(komenda);

if (!NieZapisujTeraz(komenda)) //Pomija komeny, ktore trzeba zmienic, beda zapisane pozniej na koncu

{

plik_out << bufor;

if (!plik_in.eof())

plik_out << '\n';

}

}

while(!plik_in.eof());
plik_in.close();

plik_out.close();
ToHUD();

ZapiszHUD();

ZapiszConfig();
//ROZMIAR rozmiar;

//rozmiar = GetRozmiar(Rozloz(bufor).parametr);
//char napis[20];

//sprintf(napis, "%d %d", rozmiar.x, rozmiar.y);

//temp = napis;

}
void CKonwerter::Zapisywarka(CCommand komenda)

{

if (komenda.type == SETA)

{

for (int i = 0; i < OSPSize; i++)

if (KomendyOSP[i].name == LowCase(komenda.name))

{

KomendyOSP[i].parametr = komenda.parametr;

return;

}
//cg_enemycolor color1 itp tutaj przechowywac

for (int i = 0; i < CPMASize; i++)

if (KomendyCPMA[i].name == LowCase(komenda.name))

{

KomendyCPMA[i].parametr = komenda.parametr;

return;

}
}

}
void CKonwerter::Zamieniarka()

{

char buf[40];

//ch_WeaponSwitch

if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 1 ||

atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 9)

{

KomendyCPMA[ch_DrawWeaponSelect].parametr = "1";
}

else

KomendyCPMA[ch_DrawWeaponSelect].parametr = "0";
if (atoi(KomendyOSP[cg_EnableOSPHUD].parametr.c_str()) == 0)

{

KomendyCPMA[ch_DrawWeaponSelect].parametr = "1";

}
if (atoi(KomendyOSP[cg_DrawCrosshair_].parametr.c_str()) >= 10)

{

sprintf(buf, "%d", atoi(KomendyOSP[cg_DrawCrosshair_].parametr.c_str()) % 10);

KomendyCPMA[cg_DrawCrosshair].parametr = buf;

}

else

if (atoi(KomendyOSP[cg_DrawCrosshair_].parametr.c_str()) < 0)

{
sprintf(buf, "%d", atoi(KomendyOSP[cg_DrawCrosshair_].parametr.c_str()) % 10 + 10);

KomendyCPMA[cg_DrawCrosshair].parametr = buf;

}
else

KomendyCPMA[cg_DrawCrosshair].parametr = KomendyOSP[cg_DrawCrosshair_].parametr;
if (atoi(KomendyOSP[cg_DrawCrosshair_].parametr.c_str()) == 7)

KomendyCPMA[cg_DrawCrosshair].parametr = "1";
KomendyCPMA[m_Accel].parametr = KomendyOSP[cl_MouseAccel].parametr;
KomendyCPMA[cg_RailRingStep].parametr = KomendyOSP[r_RailSegmentLength].parametr;
sprintf(buf, "%d", int(atoi(KomendyOSP[r_RailWidth].parametr.c_str()) * 0.334));

KomendyCPMA[cg_RailRingWidth].parametr = buf;

KomendyCPMA[cg_RailCoreWidth].parametr = KomendyOSP[r_RailCoreWidth].parametr;
if (atoi(KomendyOSP[cg_OldRail].parametr.c_str()) == 0)

{

KomendyCPMA[cg_RailStyle].parametr = "3";

}

KomendyCPMA[cg_RailStyle].parametr = "5";
for (int i = 0; i < KomendyOSP[Color1].parametr.length(); i++)

{

if (KomendyOSP[Color1].parametr[i] == '7')

KomendyOSP[Color1].parametr[i] = 'd';

else

if (KomendyOSP[Color1].parametr[i] == '5')

KomendyOSP[Color1].parametr[i] = '6';

else

if (KomendyOSP[Color1].parametr[i] == '6')

KomendyOSP[Color1].parametr[i] = '5';

else

if (KomendyOSP[Color1].parametr[i] == '0')

KomendyOSP[Color1].parametr[i] = '7';
}
for (int i = 0; i < KomendyOSP[Color2].parametr.length(); i++)

{

if (KomendyOSP[Color2].parametr[i] == '7')

KomendyOSP[Color2].parametr[i] = 'd';

else

if (KomendyOSP[Color2].parametr[i] == '5')

KomendyOSP[Color2].parametr[i] = '6';

else

if (KomendyOSP[Color2].parametr[i] == '6')

KomendyOSP[Color2].parametr[i] = '5';

else

if (KomendyOSP[Color2].parametr[i] == '0')

KomendyOSP[Color2].parametr[i] = '7';
}
if (KomendyOSP[Color1].parametr.length() > 0)

{

KomendyCPMA[Color].parametr[0] = KomendyOSP[Color1].parametr[0];

if (KomendyOSP[Color1].parametr.length() > 1)

{

KomendyCPMA[Color].parametr[1] = KomendyOSP[Color1].parametr[1];

if (KomendyOSP[Color1].parametr.length() > 2)

{

KomendyCPMA[Color].parametr[2] = KomendyOSP[Color1].parametr[2];

if (KomendyOSP[Color1].parametr.length() > 3)

{

KomendyCPMA[Color].parametr[3] = KomendyOSP[Color1].parametr[3];

}

}

}

}
KomendyCPMA[Color].parametr[4] = KomendyOSP[Color2].parametr[0];
for (int i = 0; i < KomendyOSP[cg_EnemyColors_].parametr.length(); i++)

{

if (KomendyOSP[cg_EnemyColors_].parametr[i] == '7')

KomendyOSP[cg_EnemyColors_].parametr[i] = 'd';

else

if (KomendyOSP[cg_EnemyColors_].parametr[i] == '5')

KomendyOSP[cg_EnemyColors_].parametr[i] = '6';

else

if (KomendyOSP[cg_EnemyColors_].parametr[i] == '6')

KomendyOSP[cg_EnemyColors_].parametr[i] = '5';

else

if (KomendyOSP[cg_EnemyColors_].parametr[i] == '0')

KomendyOSP[cg_EnemyColors_].parametr[i] = '7';
}
if (KomendyOSP[cg_EnemyColors_].parametr.length() > 0)

{

KomendyCPMA[cg_EnemyColors].parametr[0] = KomendyOSP[cg_EnemyColors_].parametr[0];

if (KomendyOSP[cg_EnemyColors_].parametr.length() > 1)

{

KomendyCPMA[cg_EnemyColors].parametr[1] = KomendyOSP[cg_EnemyColors_].parametr[1];

if (KomendyOSP[cg_EnemyColors_].parametr.length() > 2)

{

KomendyCPMA[cg_EnemyColors].parametr[2] = KomendyOSP[cg_EnemyColors_].parametr[2];

if (KomendyOSP[cg_EnemyColors_].parametr.length() > 3)

{

KomendyCPMA[cg_EnemyColors].parametr[3] = KomendyOSP[cg_EnemyColors_].parametr[3];

if (KomendyOSP[cg_EnemyColors_].parametr.length() > 4)

{

KomendyCPMA[cg_EnemyColors].parametr[4] = KomendyOSP[cg_EnemyColors_].parametr[4];

}

}

}

}

}
if (KomendyOSP[cg_EnemyColors_].parametr.length() < 5)

KomendyCPMA[cg_EnemyColors].parametr.erase(KomendyCPMA[cg_EnemyColors].parametr.begin() + KomendyOSP[cg_EnemyColors_].parametr.length(), KomendyCPMA[cg_EnemyColors].parametr.end());

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "white")

KomendyCPMA[ch_CrosshairColor].parametr = "y";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "6")

KomendyCPMA[ch_CrosshairColor].parametr = "5";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "5")

KomendyCPMA[ch_CrosshairColor].parametr = "6";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "black")

KomendyCPMA[ch_CrosshairColor].parametr = "0";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "white")

KomendyCPMA[ch_CrosshairColor].parametr = "y";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "red")

KomendyCPMA[ch_CrosshairColor].parametr = "1";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "green")

KomendyCPMA[ch_CrosshairColor].parametr = "2";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "yellow")

KomendyCPMA[ch_CrosshairColor].parametr = "3";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "blue")

KomendyCPMA[ch_CrosshairColor].parametr = "4";

else

if (LowCase(KomendyOSP[ch_CrosshairColor_].parametr.c_str()) == "cyan")

KomendyCPMA[ch_CrosshairColor].parametr = "5";

else

KomendyCPMA[ch_CrosshairColor].parametr = KomendyOSP[ch_CrosshairColor_].parametr;

if (KomendyOSP[cg_NoProjectileTrail].parametr.c_str())

{

KomendyCPMA[cg_Smoke_SG].parametr = "0";

KomendyCPMA[cg_SmokeRadius_RL].parametr = "0";

KomendyCPMA[cg_SmokeRadius_GL].parametr = "0";

}
}
void CKonwerter::ToHUD()

{

MODEL model = GetModel(KomendyOSP[Model].parametr.c_str());

string path_model, path_skin, path_icon;

int lagometer_y = 4, drawping_y = 4, timer_y = 4, drawspeed_y = 4, drawfps_y = 4, score_y = 429, powerup_y;

int attacker_y = 4, chat_szerokosc = 620;

int hud_wysokosc = 48, overlay_podnies = 0, chat_podnies = 0;

int crosshair_size = atoi(KomendyOSP[cg_CrosshairSize].parametr.c_str());

int pomoc = 0;

ROZMIAR rozmiar;
//fonty beda przechowywane w tablicy razem z innymi komendami
path_model = "models/players/";

path_model += model.model;

path_model += "/head.md3";
path_skin = "models/players/";

path_skin += model.model;

path_skin += "/head_";

path_skin += model.skin;

path_skin += ".skin";
path_icon = "models/players/";

path_icon += model.model;

path_icon += "/icon_";

path_icon += model.skin;

path_icon += ".tga";

KomendyCPMA[ch_File].parametr = d_nazwapliku + "_hud";

if (atoi(KomendyOSP[ch_3WaveFont].parametr.c_str()))

HUD[DEFAULT].font = THREEWAVE;

else

HUD[DEFAULT].font = ID;
for (int i = 1; i < HUDTypeSize; i++)

HUD[i].font = HUD[DEFAULT].font;
if (atoi(KomendyOSP[cg_DrawTeamOverlay].parametr.c_str()) == 1)

{

if (atoi(KomendyOSP[cg_EnableOSPHUD].parametr.c_str()) &&

(atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 0 ||

atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 4))

{

pomoc = 4 * GetRozmiar(KomendyOSP[cf_TeamOverlay].parametr.c_str()).y;

}

else

{

pomoc = 4 * 11;

}
drawfps_y += pomoc;

lagometer_y += pomoc;

drawping_y += pomoc;

timer_y += pomoc;

drawspeed_y += pomoc;

attacker_y += pomoc;

}

if (atoi(KomendyOSP[cg_DrawFPS].parametr.c_str()))

{

HUD[FPS].rect = RECT_(638, drawfps_y, 0, 0);

HUD[FPS].monospace = true;

lagometer_y += 18;

drawping_y += 18;

timer_y += 18;

drawspeed_y += 18;

attacker_y += 18;

}
if (atoi(KomendyOSP[cg_DrawTimer].parametr.c_str()))

{

HUD[GameTime].rect = RECT_(638, timer_y, 0, 0);

HUD[GameTime].monospace = true;

lagometer_y += 18;

drawping_y += 18;

drawspeed_y += 18;

attacker_y += 18;

}
if (atoi(KomendyOSP[ch_DrawSpeed].parametr.c_str()) == 1)

{

HUD[PlayerSpeed].rect = RECT_(638, drawspeed_y, 0, 0);

HUD[PlayerSpeed].monospace = true;

lagometer_y += 18;

drawping_y += 18;

attacker_y += 18;

}

else

if (atoi(KomendyOSP[ch_DrawSpeed].parametr.c_str()) == 2)

{

HUD[PlayerSpeed].rect = RECT_(320, 240 - 16 - (crosshair_size / 2), 0, 0);

HUD[PlayerSpeed].fontsize = FONTSIZE(10, 10);

HUD[PlayerSpeed].textstyle = 0;

HUD[PlayerSpeed].textalign = C;

HUD[PlayerSpeed].monospace = true;

HUD[PlayerSpeed].color = COLOR(1, 1, 1, 0.4);

}

if (atoi(KomendyOSP[cg_LagoMeter].parametr.c_str()) == 1)

{

if (atoi(KomendyOSP[cg_DrawPing].parametr.c_str()) >= 1)

{

HUD[NetGraphPing].rect = RECT_(640, 418, 0, 0);

HUD[NetGraphPing].fontsize = FONTSIZE(12, 12);

HUD[NetGraphPing].monospace = true;

score_y -= 14;

overlay_podnies += 14;

}
HUD[NetGraph].rect = RECT_(592, 432, 48, 48);

HUD[Decorate1].rect = RECT_(592, 432, 48, 48);

HUD[Decorate1].image = "gfx/2d/lag.jpg";

}

else

if (atoi(KomendyOSP[cg_LagoMeter].parametr.c_str()) >= 2)

{

if (atoi(KomendyOSP[cg_DrawPing].parametr.c_str()) >= 1)

{

HUD[NetGraphPing].rect = RECT_(640, drawping_y, 0, 0);

HUD[NetGraphPing].fontsize = FONTSIZE(12, 12);

HUD[NetGraphPing].monospace = true;

lagometer_y += 14;

attacker_y += 14;

}
HUD[NetGraph].rect = RECT_(592, lagometer_y, 48, 48);

HUD[Decorate1].rect = RECT_(592, lagometer_y, 48, 48);

HUD[Decorate1].image = "gfx/2d/lag.jpg";
attacker_y += 48;
}

else

{

if (atoi(KomendyOSP[cg_DrawPing].parametr.c_str()) >= 1)

{

HUD[NetGraphPing].rect = RECT_(640, drawping_y, 0, 0);

HUD[NetGraphPing].fontsize = FONTSIZE(12, 12);

HUD[NetGraphPing].monospace = true;
attacker_y += 14;
}

}
if (atoi(KomendyOSP[cg_DrawAttacker].parametr.c_str()))

{

HUD[AttackerIcon].rect = RECT_(576, attacker_y, 64, 64);

HUD[AttackerIcon].time = 10000;
HUD[AttackerName].rect = RECT_(640, attacker_y + 64, 0, 0);

HUD[AttackerName].textalign = R;

HUD[AttackerName].monospace = true;

HUD[AttackerName].time = 10000;

}

if (atoi(KomendyOSP[cg_Draw3DIcons].parametr.c_str()))

{

HUD[AttackerIcon].angles = ANGLES(0, 180, 0, 0);

HUD[AttackerIcon].draw3d = true;
HUD[StatusBar_AmmoIcon].angles = ANGLES(0, 90, 0, 20);

HUD[StatusBar_AmmoIcon].draw3d = true;
HUD[StatusBar_ArmorIcon].angles = ANGLES(0, 0, 0, 180);

HUD[StatusBar_ArmorIcon].draw3d = true;
HUD[StatusBar_HealthIcon].angles = ANGLES(0, 180, 0, 20);

HUD[StatusBar_HealthIcon].draw3d = true;

}

else

{
}
if (atoi(KomendyOSP[cg_DrawAmmoWarning].parametr.c_str()))

{

HUD[AmmoMessage].rect = RECT_(320, 60, 0, 0);

HUD[AmmoMessage].textalign = C;

HUD[AmmoMessage].monospace = true;

}
if (atoi(KomendyOSP[cg_EnableOSPHUD].parametr.c_str()))

{

if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 2 ||

atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 3)

{
HUD[WeaponList].rect = RECT_(550, 120, 80, 16);

HUD[WeaponList].color = COLOR(0.3, 0.3, 0.3, 0.5);

HUD[WeaponList].fontsize = FONTSIZE(16, 16);

HUD[WeaponList].textalign = L;

HUD[WeaponList].monospace = true;

HUD[WeaponList].textstyle = 0;
if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 2)

HUD[WeaponList].time = 1500;

}

else

if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 4 ||

atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 5)

{
HUD[WeaponList].rect = RECT_(10, 120, 80, 16);

HUD[WeaponList].color = COLOR(0.3, 0.3, 0.3, 0.5);

HUD[WeaponList].fontsize = FONTSIZE(16, 16);

HUD[WeaponList].textalign = L;

HUD[WeaponList].monospace = true;

HUD[WeaponList].textstyle = 0;
if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 4)

HUD[WeaponList].time = 1500;

}

else

if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 6)

{

HUD[WeaponList].rect = RECT_(8, 52, 80, 16);

HUD[WeaponList].color = COLOR(0, 0, 1, 0.3);

HUD[WeaponList].fontsize = FONTSIZE(16, 16);

HUD[WeaponList].textalign = L;

HUD[WeaponList].monospace = true;
HUD[Decorate7].rect = RECT_(4, 48, 76, 1);

HUD[Decorate7].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate7].fill = true;

}

else

if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 7)

{

HUD[WeaponList].rect = RECT_(556, 52, 80, 16);

HUD[WeaponList].color = COLOR(0, 0, 1, 0.3);

HUD[WeaponList].fontsize = FONTSIZE(16, 16);

HUD[WeaponList].textalign = L;

HUD[WeaponList].monospace = true;
HUD[Decorate7].rect = RECT_(560, 48, 76, 1);

HUD[Decorate7].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate7].fill = true;

}

else

if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 8)

{

HUD[WeaponList].rect = RECT_(320, 380, 56, 13);

HUD[WeaponList].color = COLOR(0, 0, 1, 0.3);

HUD[WeaponList].fontsize = FONTSIZE(10, 10);

HUD[WeaponList].textalign = C;

HUD[WeaponList].monospace = true;
}
//zaleznie od cf_Vote

rozmiar = GetRozmiar(KomendyOSP[cf_Vote].parametr.c_str());

HUD[VoteMessageArena].fontsize = rozmiar;

HUD[VoteMessageWorld].fontsize = rozmiar;

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 0 ||

atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 4 ||

atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) >= 13)

{

//taki sam jak dla cg_enableosp 0

HUD[StatusBar_AmmoCount].rect = RECT_(100, 432, 0, 0);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(32, 48);

HUD[StatusBar_AmmoCount].textstyle = 0;
HUD[StatusBar_ArmorCount].rect = RECT_(469, 432, 0, 0);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(32, 48);

HUD[StatusBar_ArmorCount].textstyle = 0;

HUD[StatusBar_HealthCount].rect = RECT_(284, 432, 0, 0);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(32, 48);

HUD[StatusBar_HealthCount].textstyle = 0;
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_ArmorIcon].rect = RECT_(469, 432, 48, 48);
if (atoi(KomendyOSP[cg_Draw3DIcons].parametr.c_str()))

{

HUD[StatusBar_AmmoIcon].rect = RECT_(100, 436, 40, 40);
HUD[StatusBar_HealthIcon].rect = RECT_(292, 426, 48, 50);
HUD[StatusBar_HealthIcon].model = path_model;

HUD[StatusBar_HealthIcon].image = path_skin;

}

else

{

HUD[StatusBar_AmmoIcon].rect = RECT_(100, 432, 48, 48);
HUD[StatusBar_HealthIcon].rect = RECT_(286, 420, 60, 60);

HUD[StatusBar_HealthIcon].image = path_icon;

}

}
}

else

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 1 ||

atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 2 ||

atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 3)

{

hud_wysokosc = GetRozmiar(KomendyOSP[cf_StatusBar].parametr.c_str()).y;
rozmiar = GetRozmiar(KomendyOSP[cf_StatusBar].parametr.c_str());
HUD[StatusBar_AmmoCount].rect = RECT_(320 + rozmiar.x / 2 - ((rozmiar.x * 3) / 2) - rozmiar.x * 2, 480 - rozmiar.y, 0, 0);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_AmmoCount].textstyle = 0;
HUD[StatusBar_ArmorCount].rect = RECT_(320 + rozmiar.x / 2 + rozmiar.x * 3 + ((rozmiar.x * 3) / 2) + 4 + rozmiar.x, 480 - rozmiar.y, 0, 0);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_ArmorCount].textstyle = 0;
HUD[StatusBar_HealthCount].rect = RECT_(320 + rozmiar.x / 2 + (rozmiar.x * 3) / 2 + 4, 480 - rozmiar.y, 0, 0);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_HealthCount].textstyle = 0;

HUD[StatusBar_AmmoIcon].rect = RECT_(320 + rozmiar.x / 2 - ((rozmiar.x * 3) / 2) - rozmiar.x * 2, 480 - rozmiar.y, rozmiar.x, rozmiar.y);

HUD[StatusBar_AmmoIcon].draw3d = false;
if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 1 ||

atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 9)

if(atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 3)

{

HUD[WeaponList].rect = RECT_(0, 435, 50, 8);

HUD[WeaponList].color = COLOR(0.3, 0.3, 0.3, 1);

HUD[WeaponList].fontsize = FONTSIZE(8, 8);

HUD[WeaponList].textalign = L;

HUD[WeaponList].monospace = true;

HUD[WeaponList].textstyle = 0;

}
}

else

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 5)

{
if (atoi(KomendyOSP[ch_Graphs].parametr.c_str()))

{

HUD[StatusBar_HealthBar].rect = RECT_(65, 433, 200, 35);

HUD[StatusBar_HealthBar].color = COLOR(0, 0, 0, 0);

HUD[StatusBar_HealthBar].doublebar = true;
HUD[StatusBar_ArmorBar].rect = RECT_(375, 433, 200, 35);

HUD[StatusBar_ArmorBar].color = COLOR(0, 0, 0, 0);

HUD[StatusBar_ArmorBar].doublebar = true;

HUD[StatusBar_ArmorBar].textalign = L;

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 10:40:33

Dalsza część kodu:
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_HealthIcon].rect = RECT_(45, 433, 16, 16);

HUD[StatusBar_HealthIcon].image = path_icon;

HUD[StatusBar_HealthIcon].draw3d = false;
HUD[StatusBar_ArmorIcon].rect

HUD[StatusBar_ArmorIcon].draw3d = false;

}
HUD[Decorate2].rect = RECT_(65, 450, 200, 1);

HUD[Decorate2].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate2].fill = true;
HUD[Decorate4].rect = RECT_(375, 450, 200, 1);

HUD[Decorate4].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate4].fill = true;

}

else

{

if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_HealthIcon].rect = RECT_(245, 433, 16, 16);

HUD[StatusBar_HealthIcon].image = path_icon;

HUD[StatusBar_HealthIcon].draw3d = false;
HUD[StatusBar_ArmorIcon].rect = RECT_(379, 433, 16, 16);

HUD[StatusBar_ArmorIcon].draw3d = false;

}

}

HUD[StatusBar_HealthCount].rect = RECT_(317, 438, 0, 0);

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].textstyle = 0;
HUD[StatusBar_ArmorCount].rect = RECT_(375, 438, 0, 0);

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].textstyle = 0;
HUD[Decorate3].rect = RECT_(320, 433, 1, 30);

HUD[Decorate3].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate3].fill = true;
}

else

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 6)

{

if (atoi(KomendyOSP[ch_Graphs].parametr.c_str()))

{

HUD[StatusBar_HealthBar].rect = RECT_(24, 433, 200, 16);

HUD[StatusBar_HealthBar].color = COLOR(0, 0, 0, 0);
HUD[StatusBar_ArmorBar].rect = RECT_(24, 453, 200, 16);

HUD[StatusBar_ArmorBar].color = COLOR(0, 0, 0, 0);
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_HealthIcon].rect = RECT_(4, 433, 16, 16);

HUD[StatusBar_HealthIcon].image = path_icon;

HUD[StatusBar_HealthIcon].draw3d = false;
HUD[StatusBar_ArmorIcon].rect = RECT_(4, 453, 16, 16);

HUD[StatusBar_ArmorIcon].draw3d = false;

}
HUD[Decorate2].rect = RECT_(124, 433, 1, 36);

HUD[Decorate2].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate2].fill = true;
}

else

{

if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_HealthIcon].rect = RECT_(204, 433, 16, 16);

HUD[StatusBar_HealthIcon].image = path_icon;

HUD[StatusBar_HealthIcon].draw3d = false;
HUD[StatusBar_ArmorIcon].rect = RECT_(204, 453, 16, 16);

HUD[StatusBar_ArmorIcon].draw3d = false;

}

}

HUD[StatusBar_HealthCount].rect = RECT_(260, 433, 0, 0);

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(10, 16);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].textstyle = 0;

HUD[StatusBar_ArmorCount].rect = RECT_(260, 453, 0, 0);

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(10, 16);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].textstyle = 0;

HUD[StatusBar_AmmoCount].rect = RECT_(380, 426, 0, 0);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(32, 48);

HUD[StatusBar_AmmoCount].textstyle = 0;
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

if (atoi(KomendyOSP[cg_Draw3DIcons].parametr.c_str()))

{

HUD[StatusBar_AmmoIcon].rect = RECT_(380, 430, 40, 40);
}

else

{

HUD[StatusBar_AmmoIcon].rect = RECT_(380, 426, 48, 48);

}

}

else

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 7)

{

if (atoi(KomendyOSP[ch_Graphs].parametr.c_str()))

{

HUD[StatusBar_HealthBar].rect = RECT_(30, 266, 8, 150);

HUD[StatusBar_HealthBar].color = COLOR(0, 0, 0, 0);

HUD[StatusBar_HealthBar].textalign = C;
HUD[StatusBar_ArmorBar].rect = RECT_(87, 266, 8, 150);

HUD[StatusBar_ArmorBar].color = COLOR(0, 0, 0, 0);

HUD[StatusBar_ArmorBar].textalign = C;
}
HUD[StatusBar_HealthCount].rect = RECT_(40, 418, 0, 0);

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(10, 16);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].textstyle = 0;
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_HealthIcon].rect = RECT_(5, 438, 32, 32);

HUD[StatusBar_HealthIcon].image = path_icon;

HUD[StatusBar_HealthIcon].draw3d = false;
HUD[StatusBar_ArmorIcon].rect = RECT_(62, 438, 32, 32);

HUD[StatusBar_ArmorIcon].draw3d = false;

}
HUD[StatusBar_ArmorCount].rect = RECT_(97, 418, 0, 0);

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(10, 16);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].textstyle = 0;
}

else

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 8)

{

if (atoi(KomendyOSP[ch_Graphs].parametr.c_str()))

{

HUD[StatusBar_HealthBar].rect = RECT_(70, 433, 100, 35);

HUD[StatusBar_HealthBar].color = COLOR(0, 0, 0, 0);

HUD[StatusBar_HealthBar].doublebar = true;
HUD[StatusBar_HealthCount].rect = RECT_(226, 438, 0, 0);

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].textstyle = 0;
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_HealthIcon].rect = RECT_(70, 433, 16, 16);

HUD[StatusBar_HealthIcon].image = path_icon;

HUD[StatusBar_HealthIcon].draw3d = false;
HUD[StatusBar_ArmorIcon].rect = RECT_(239, 433, 16, 16);

HUD[StatusBar_ArmorIcon].draw3d = false;
HUD[StatusBar_AmmoIcon].rect = RECT_(410, 433, 16, 16);

HUD[StatusBar_AmmoIcon].draw3d = false;

}

HUD[StatusBar_ArmorBar].rect = RECT_(239, 433, 100, 35);

HUD[StatusBar_ArmorBar].color = COLOR(0, 0, 0, 0);

HUD[StatusBar_ArmorBar].doublebar = true;

HUD[StatusBar_ArmorBar].textalign = L;
HUD[StatusBar_ArmorCount].rect = RECT_(395, 438, 0, 0);

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].textstyle = 0;
HUD[StatusBar_AmmoBar].rect = RECT_(410, 433, 100, 35);

HUD[StatusBar_AmmoBar].color = COLOR(0, 0, 0, 0);

HUD[StatusBar_AmmoBar].doublebar = true;

HUD[StatusBar_AmmoBar].textalign = L;
HUD[StatusBar_AmmoCount].rect = RECT_(566, 438, 0, 0);

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].textstyle = 0;

HUD[Decorate2].rect = RECT_(70, 450, 100, 1);

HUD[Decorate2].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate2].fill = true;
HUD[Decorate3].rect = RECT_(230, 433, 1, 34);

HUD[Decorate3].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate3].fill = true;
HUD[Decorate4].rect = RECT_(239, 450, 100, 1);

HUD[Decorate4].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate4].fill = true;
HUD[Decorate5].rect = RECT_(400, 433, 1, 34);

HUD[Decorate5].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate5].fill = true;
HUD[Decorate6].rect = RECT_(410, 450, 100, 1);

HUD[Decorate6].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate6].fill = true;

}

else

{

HUD[StatusBar_HealthCount].rect = RECT_(279, 438, 0, 0);

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].textstyle = 0;
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_HealthIcon].rect = RECT_(208, 443, 16, 16);

HUD[StatusBar_HealthIcon].image = path_icon;

HUD[StatusBar_HealthIcon].draw3d = false;
HUD[StatusBar_ArmorIcon].rect = RECT_(283, 443, 16, 16);

HUD[StatusBar_ArmorIcon].draw3d = false;
HUD[StatusBar_AmmoIcon].rect = RECT_(358, 443, 16, 16);

HUD[StatusBar_AmmoIcon].draw3d = false;

}
HUD[StatusBar_ArmorCount].rect = RECT_(354, 438, 0, 0);

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].textstyle = 0;
HUD[StatusBar_AmmoCount].rect = RECT_(430, 438, 0, 0);

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(16, 24);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].textstyle = 0;
HUD[Decorate3].rect = RECT_(280, 433, 1, 34);

HUD[Decorate3].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate3].fill = true;
HUD[Decorate5].rect = RECT_(355, 433, 1, 34);

HUD[Decorate5].bgcolor = COLOR(1, 1, 1, 1);

HUD[Decorate5].fill = true;
}

}

else

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 9 ||

atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 10)

{

hud_wysokosc = GetRozmiar(KomendyOSP[cf_StatusBar].parametr.c_str()).y + 5;
rozmiar = GetRozmiar(KomendyOSP[cf_StatusBar].parametr.c_str());
HUD[StatusBar_AmmoCount].rect = RECT_(100, 475 - rozmiar.y, 0, 0);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_AmmoCount].textstyle = 0;
HUD[StatusBar_ArmorCount].rect = RECT_(490, 475 - rozmiar.y, 0, 0);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_ArmorCount].textstyle = 0;
HUD[StatusBar_HealthCount].rect = RECT_(358, 475 - rozmiar.y, 0, 0);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_HealthCount].textstyle = 0;
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

if (atoi(KomendyOSP[cg_Draw3DIcons].parametr.c_str()))

{

HUD[StatusBar_AmmoIcon].rect = RECT_(102, 436, 40, 40);
}

else

{

HUD[StatusBar_AmmoIcon].rect = RECT_(100, 444, 32, 32);
}
}

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 11 ||

atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 12)

{

hud_wysokosc = GetRozmiar(KomendyOSP[cf_StatusBar].parametr.c_str()).y + 5;
rozmiar = GetRozmiar(KomendyOSP[cf_StatusBar].parametr.c_str());
HUD[StatusBar_AmmoCount].rect = RECT_(240, 475 - rozmiar.y, 0, 0);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_AmmoCount].textstyle = 0;
HUD[StatusBar_ArmorCount].rect = RECT_(490, 475 - rozmiar.y, 0, 0);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_ArmorCount].textstyle = 0;
HUD[StatusBar_HealthCount].rect = RECT_(358, 475 - rozmiar.y, 0, 0);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(rozmiar.x, rozmiar.y);

HUD[StatusBar_HealthCount].textstyle = 0;
if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

if (atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 12)

if (atoi(KomendyOSP[cg_Draw3DIcons].parametr.c_str()))

{

HUD[StatusBar_AmmoIcon].rect = RECT_(100, 438, 40, 40);
}

else

{

HUD[StatusBar_AmmoIcon].rect = RECT_(111, 438, 32, 32);
}

if (atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 1 ||

atoi(KomendyOSP[ch_WeaponSwitch].parametr.c_str()) == 9)

if(atoi(KomendyOSP[ch_StatusBarFormat].parametr.c_str()) == 12)

{

HUD[WeaponList].rect = RECT_(0, 435, 50, 8);

HUD[WeaponList].color = COLOR(0.3, 0.3, 0.3, 1);

HUD[WeaponList].fontsize = FONTSIZE(8, 8);

HUD[WeaponList].textalign = L;

HUD[WeaponList].monospace = true;

HUD[WeaponList].textstyle = 0;

}
}

rozmiar = GetRozmiar(KomendyOSP[cf_FragMsg].parametr.c_str());

int maniek = 0;

if (rozmiar.x > rozmiar.y) maniek = rozmiar.x;

else maniek = rozmiar.y;
HUD[FragMessage].rect = RECT_(320, 105, 0, 0);

HUD[FragMessage].fontsize = FONTSIZE(maniek, maniek + maniek / 2);

HUD[FragMessage].textalign = C;

HUD[FragMessage].time = 3000;

HUD[FragMessage].monospace = true;
HUD[RankMessage].rect = RECT_(320, 105 + maniek + maniek / 2, 0, 0);

HUD[RankMessage].fontsize = FONTSIZE(maniek, maniek + maniek / 2);

HUD[RankMessage].textalign = C;

HUD[RankMessage].time = 3000;

HUD[RankMessage].monospace = true;
rozmiar = GetRozmiar(KomendyOSP[cf_Following].parametr.c_str());

HUD[FollowMessage].rect = RECT_(320, 24, 0, 0);

HUD[FollowMessage].fontsize = rozmiar;

HUD[FollowMessage].textalign = C;

HUD[FollowMessage].monospace = true;

HUD[FollowMessage].textstyle = 0;
rozmiar = GetRozmiar(KomendyOSP[cf_PickupString].parametr.c_str());

HUD[ItemPickup].fontsize = rozmiar;

HUD[ItemPickup].rect = RECT_(6 + rozmiar.x, 480 - 6 - hud_wysokosc - rozmiar.y, 0, 0);

HUD[ItemPickup].textalign = L;

HUD[ItemPickup].time = 3000;

HUD[ItemPickup].monospace = true;
HUD[ItemPickupIcon].rect = RECT_(6, 480 - 6 - hud_wysokosc - rozmiar.y, rozmiar.x, rozmiar.y);

HUD[ItemPickupIcon].time = 3000;
if (hud_wysokosc < 48) hud_wysokosc = 48;

if (atoi(KomendyOSP[ch_CrosshairNamesLeft].parametr.c_str()))

{

//po lewej na dole

rozmiar = GetRozmiar(KomendyOSP[cf_CrosshairNames].parametr.c_str());

FONTSIZE rozmiar2 = GetRozmiar(KomendyOSP[cf_TeamCrosshairHealth].parametr.c_str());
HUD[TargetName].rect = RECT_(0, 480 - hud_wysokosc - rozmiar.y - rozmiar2.y, 0, 0);

HUD[TargetName].textalign = L;

HUD[TargetName].fontsize = rozmiar;

HUD[TargetName].monospace = true;

HUD[TargetName].time = 1000;

HUD[TargetName].textstyle = 0;
if (atoi(KomendyOSP[ch_TeamCrosshairHealth].parametr.c_str()))

{

HUD[TargetStatus].rect = RECT_(0, 480 - hud_wysokosc - rozmiar2.y, 0, 0);

HUD[TargetStatus].textalign = L;

HUD[TargetStatus].fontsize = rozmiar2;

HUD[TargetStatus].monospace = true;

HUD[TargetStatus].time = 1000;

HUD[TargetStatus].textstyle = 0;

}
}

else

{

//ch_DrawCrosshairNames - CPMA tez ma ta komende i samo wylaczy jesli trzeba

rozmiar = GetRozmiar(KomendyOSP[cf_CrosshairNames].parametr.c_str());

FONTSIZE rozmiar2 = GetRozmiar(KomendyOSP[cf_TeamCrosshairHealth].parametr.c_str());
HUD[TargetName].rect = RECT_(320, 170, 0, 0);

HUD[TargetName].textalign = C;

HUD[TargetName].fontsize = rozmiar;

HUD[TargetName].monospace = true;

HUD[TargetName].time = 1000;

HUD[TargetName].textstyle = 0;
if (atoi(KomendyOSP[ch_TeamCrosshairHealth].parametr.c_str()))

{

HUD[TargetStatus].rect = RECT_(320, 170 + rozmiar.y, 0, 0);

HUD[TargetStatus].textalign = C;

HUD[TargetStatus].fontsize = rozmiar2;

HUD[TargetStatus].monospace = true;

HUD[TargetStatus].time = 1000;

HUD[TargetStatus].textstyle = 0;

}

}
rozmiar = GetRozmiar(KomendyOSP[cf_TeamOverlay].parametr.c_str());

if (atoi(KomendyOSP[cg_DrawTeamOverlay].parametr.c_str()) == 1)

{

DrawTeamOverlay(FONTSIZE(rozmiar.x, rozmiar.y), 0, 1);
}

else

if (atoi(KomendyOSP[cg_DrawTeamOverlay].parametr.c_str()) == 2)

{

int old = hud_wysokosc;

if (hud_wysokosc < 48) hud_wysokosc = 48;
DrawTeamOverlay(FONTSIZE(rozmiar.x, rozmiar.y), hud_wysokosc + overlay_podnies, 2);

score_y -= rozmiar.y * 4;
hud_wysokosc = old;
}

else

if (atoi(KomendyOSP[cg_DrawTeamOverlay].parametr.c_str()) == 3)

{

int maniek = 0;

if (atoi(KomendyOSP[ch_CrosshairNamesLeft].parametr.c_str()))

maniek = 24;
DrawTeamOverlay(FONTSIZE(rozmiar.x, rozmiar.y), hud_wysokosc + maniek, 3);

chat_podnies += rozmiar.y * 4;

}
//TO MUSI BYC W TYM MIEJSCU po statusbarformatach

rozmiar = GetRozmiar(KomendyOSP[cf_TeamChat].parametr.c_str());

if (atoi(KomendyOSP[ch_InverseTeamChat].parametr.c_str()))

{

DrawTeamChat(rozmiar, chat_szerokosc, hud_wysokosc + chat_podnies, true);

}

else

{

DrawTeamChat(rozmiar, chat_szerokosc, hud_wysokosc + chat_podnies, false);
}
if (hud_wysokosc > 48)

{

score_y = score_y - (hud_wysokosc - 48);

}
rozmiar = GetRozmiar(KomendyOSP[cf_Scores].parametr.c_str());

score_y -= rozmiar.y + 8;
powerup_y = score_y - rozmiar.y - 8 - 48 - 4; // razy 2 bo flagi w ctfie

HUD[Score_Limit].rect = RECT_(638 - rozmiar.x * 3 * 2, score_y, 0, 0);

HUD[Score_Limit].fontsize = rozmiar;
HUD[Score_NME].rect = RECT_(638 - rozmiar.x * 3, score_y, rozmiar.x * 3, rozmiar.y + 8);

HUD[Score_NME].fontsize = rozmiar;
HUD[Score_OWN].rect = RECT_(638 - rozmiar.x * 3 * 2, score_y, rozmiar.x * 3, rozmiar.y + 8);

HUD[Score_OWN].fontsize = rozmiar;
HUD[FlagStatus_NME].rect = RECT_(638 - rozmiar.x * 3, score_y - (rozmiar.y + 8), rozmiar.x * 3, rozmiar.y + 8);
HUD[FlagStatus_OWN].rect = RECT_(638 - rozmiar.x * 3 * 2, score_y - (rozmiar.y + 8), rozmiar.x * 3, rozmiar.y + 8);
HUD[TeamCount_NME].rect = RECT_(638 - rozmiar.x * 3, score_y - (rozmiar.y + 8), rozmiar.x * 3, rozmiar.y + 8);

HUD[TeamCount_NME].fontsize = rozmiar;
HUD[TeamCount_OWN].rect = RECT_(638 - rozmiar.x * 3 * 2, score_y - (rozmiar.y + 8), rozmiar.x * 3, rozmiar.y + 8);

HUD[TeamCount_OWN].fontsize = rozmiar;
}

else

{

KomendyCPMA[ch_DrawWeaponSelect].parametr = "1";
//nie ma na enableosp 0 targetstatusu!!!!!!
HUD[VoteMessageArena].fontsize = FONTSIZE(10, 14);
HUD[VoteMessageWorld].fontsize = FONTSIZE(10, 14);
score_y -= 16 + 8; //wysokosc czcionki
powerup_y = score_y - 24 - 48 - 4; //24 bo w ctfie sa flagi, -4 zeby odstep byl
HUD[TargetName].rect = RECT_(320, 170, 0, 0);

HUD[TargetName].textalign = C;

HUD[TargetName].color = COLOR(1, 1, 1, 0.5);

HUD[TargetName].monospace = true;

HUD[TargetName].time = 1000;
if (atoi(KomendyOSP[cg_DrawTeamOverlay].parametr.c_str()) == 1)

{

DrawTeamOverlay(FONTSIZE(6, 11), 0, 1);

}

else

if (atoi(KomendyOSP[cg_DrawTeamOverlay].parametr.c_str()) == 2)

{

DrawTeamOverlay(FONTSIZE(6, 11), hud_wysokosc + overlay_podnies, 2);

score_y -= 11 * 4;

}

else

if (atoi(KomendyOSP[cg_DrawTeamOverlay].parametr.c_str()) == 3)

{

DrawTeamOverlay(FONTSIZE(6, 11), hud_wysokosc, 3);

chat_podnies += 11 * 4;

}
DrawTeamChat(FONTSIZE(6, 11), chat_szerokosc, hud_wysokosc + chat_podnies, false);
HUD[FollowMessage].rect = RECT_(320, 24, 0, 0);

HUD[FollowMessage].textalign = C;

HUD[FollowMessage].monospace = true;

HUD[FragMessage].rect = RECT_(320, 105, 0, 0);

HUD[FragMessage].fontsize = FONTSIZE(16, 26);

HUD[FragMessage].textalign = C;

HUD[FragMessage].time = 3000;

HUD[FragMessage].monospace = true;
HUD[RankMessage].rect = RECT_(320, 131, 0, 0);

HUD[RankMessage].fontsize = FONTSIZE(16, 26);

HUD[RankMessage].textalign = C;

HUD[RankMessage].time = 3000;

HUD[RankMessage].monospace = true;

HUD[ItemPickup].rect = RECT_(64, 400, 0, 0);

HUD[ItemPickup].textalign = L;

HUD[ItemPickup].time = 3000;

HUD[ItemPickup].monospace = true;
HUD[ItemPickupIcon].rect = RECT_(6, 384, 48, 48);

HUD[ItemPickupIcon].time = 3000;
HUD[Score_Limit].rect = RECT_(638 - 16 * 3 * 2, score_y, 0, 0);
HUD[Score_NME].rect = RECT_(638 - 16 * 3, score_y, 16 * 3, 16 + 8);
HUD[Score_OWN].rect = RECT_(638 - 16 * 3 * 2, score_y, 16 * 3, 16 + 8);
HUD[FlagStatus_NME].rect = RECT_(638 - 16 * 3, score_y - (16 + 8), 16 * 3, 16 + 8);
HUD[FlagStatus_OWN].rect = RECT_(638 - 16 * 3 * 2, score_y - (16 + 8), 16 * 3, 16 + 8);
HUD[TeamCount_NME].rect = RECT_(638 - 16 * 3, score_y - (16 + 8), 16 * 3, 16 + 8);
HUD[TeamCount_OWN].rect = RECT_(638 - 16 * 3 * 2, score_y - (16 + 8), 16 * 3, 16 + 8);

HUD[StatusBar_AmmoCount].rect = RECT_(100, 432, 0, 0);

HUD[StatusBar_AmmoCount].font = IDBLOCK;

HUD[StatusBar_AmmoCount].fontsize = FONTSIZE(32, 48);

HUD[StatusBar_AmmoCount].textstyle = 0;

HUD[StatusBar_ArmorCount].rect = RECT_(469, 432, 0, 0);

HUD[StatusBar_ArmorCount].font = IDBLOCK;

HUD[StatusBar_ArmorCount].fontsize = FONTSIZE(32, 48);

HUD[StatusBar_ArmorCount].textstyle = 0;

HUD[StatusBar_HealthCount].rect = RECT_(284, 432, 0, 0);

HUD[StatusBar_HealthCount].font = IDBLOCK;

HUD[StatusBar_HealthCount].fontsize = FONTSIZE(32, 48);

HUD[StatusBar_HealthCount].textstyle = 0;

if (atoi(KomendyOSP[cg_DrawIcons].parametr.c_str()))

{

HUD[StatusBar_ArmorIcon].rect = RECT_(469, 432, 48, 48);
if (atoi(KomendyOSP[cg_Draw3DIcons].parametr.c_str()))

{

HUD[StatusBar_AmmoIcon].rect = RECT_(100, 436, 40, 40);
HUD[StatusBar_HealthIcon].rect = RECT_(292, 426, 48, 50);
HUD[StatusBar_HealthIcon].model = path_model;

HUD[StatusBar_HealthIcon].image = path_skin;

}

else

{

HUD[StatusBar_AmmoIcon].rect = RECT_(100, 432, 48, 48);
HUD[StatusBar_HealthIcon].rect = RECT_(286, 420, 60, 60);

HUD[StatusBar_HealthIcon].image = path_icon;

}

}

}

//wartosci zawsze takie same bez wzgledu na wszystko
HUD[Score_Limit].monospace = true;
HUD[Score_NME].color = COLOR(E);

HUD[Score_NME].bgcolor = COLOR(0, 0, 0, 0.5);

HUD[Score_NME].fill = true;

HUD[Score_NME].monospace = true;
HUD[Score_OWN].color = COLOR(T);

HUD[Score_OWN].bgcolor = COLOR(0, 0, 0, 0.5);

HUD[Score_OWN].fill = true;

HUD[Score_OWN].monospace = true;
HUD[FlagStatus_NME].color = COLOR(E);

HUD[FlagStatus_NME].bgcolor = COLOR(0, 0, 0, 1);

HUD[FlagStatus_NME].monospace = true;
HUD[FlagStatus_OWN].color = COLOR(T);

HUD[FlagStatus_OWN].bgcolor = COLOR(0, 0, 0, 1);

HUD[FlagStatus_OWN].monospace = true;
HUD[TeamCount_NME].color = COLOR(E);

HUD[TeamCount_NME].bgcolor = COLOR(0, 0, 0, 0.5);

HUD[TeamCount_NME].monospace = true;

HUD[TeamCount_NME].fill = true;
HUD[TeamCount_OWN].color = COLOR(T);

HUD[TeamCount_OWN].bgcolor = COLOR(0, 0, 0, 0.5);

HUD[TeamCount_OWN].monospace = true;

HUD[TeamCount_OWN].fill = true;

HUD[SpecMessage].rect = RECT_(320, 440, 0, 0);

HUD[SpecMessage].color = COLOR(1, 1, 0, 1);

HUD[SpecMessage].textalign = C;

HUD[SpecMessage].monospace = true;
HUD[VoteMessageWorld].rect = RECT_(320, 74, 0, 0);

HUD[VoteMessageWorld].textstyle = 0;

HUD[VoteMessageWorld].textalign = C;

HUD[VoteMessageWorld].monospace = true;
HUD[GameType].rect = RECT_(320, 10, 0, 0);

HUD[GameType].fontsize = FONTSIZE(14, 14);

HUD[GameType].textalign = C;

HUD[GameType].color = COLOR(1, 0.5, 0, 1);

HUD[GameType].monospace = true;
HUD[WarmupInfo].rect = RECT_(320, 30, 0, 0);

HUD[WarmupInfo].fontsize = FONTSIZE(14, 14);

HUD[WarmupInfo].textalign = C;

HUD[WarmupInfo].color = COLOR(1, 0, 0, 1);

HUD[WarmupInfo].monospace = true;

}

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 10:41:47

I ostatni fragment:

string CKonwerter::HUD2String(CHUD hud)

{
//jesli cos jest w default to pomija to

string tmp = "";

char buf[40];
bool def = false;
if (hud.name == "!DEFAULT") def = true;
tmp += hud.name;

tmp += "\n{\n";
if (def || (!def &&

(hud.rect.x != HUD[DEFAULT].rect.x || hud.rect.y != HUD[DEFAULT].rect.y ||

hud.rect.w != HUD[DEFAULT].rect.w || hud.rect.h != HUD[DEFAULT].rect.h)))

{

tmp += " rect ";

sprintf(buf, "%d %d %d %d", hud.rect.x, hud.rect.y, hud.rect.w, hud.rect.h);

tmp += buf;

tmp += "\n";

}
if (def || (!def && hud.font != HUD[DEFAULT].font))

{

tmp += " font ";

if (hud.font == ID) tmp += "ID";

else if (hud.font == IDBLOCK) tmp += "IDBLOCK";

else if (hud.font == THREEWAVE) tmp += "THREEWAVE";

tmp += "\n";

}
if (def || (!def &&

(hud.fontsize.x != HUD[DEFAULT].fontsize.x || hud.fontsize.y != HUD[DEFAULT].fontsize.y)))

{

tmp += " fontsize ";

sprintf(buf, "%d %d", hud.fontsize.x, hud.fontsize.y);

tmp += buf;

tmp += "\n";

}
if (hud.color.special == ZERO)

{

if (def || (!def &&

(hud.color.r != HUD[DEFAULT].color.r || hud.color.g != HUD[DEFAULT].color.g ||

hud.color.b != HUD[DEFAULT].color.b || hud.color.a != HUD[DEFAULT].color.a)))

{

tmp += " color ";

sprintf(buf, "%.1f %.1f %.1f %.1f", hud.color.r, hud.color.g, hud.color.b, hud.color.a);

tmp += buf;

tmp += "\n";

}

}

else

{

if (def || !def && hud.color.special != HUD[DEFAULT].color.special)

{

tmp += " color ";

if (hud.color.special == T) tmp += "T";

else if (hud.color.special == E) tmp += "E";

tmp += "\n";

}

}
if (def || (!def &&

(hud.bgcolor.r != HUD[DEFAULT].bgcolor.r || hud.bgcolor.g != HUD[DEFAULT].bgcolor.g ||

hud.bgcolor.b != HUD[DEFAULT].bgcolor.b || hud.bgcolor.a != HUD[DEFAULT].bgcolor.a)))

{

tmp += " bgcolor ";

sprintf(buf, "%.1f %.1f %.1f %.1f", hud.bgcolor.r, hud.bgcolor.g, hud.bgcolor.b, hud.bgcolor.a);

tmp += buf;

tmp += "\n";

}
if (def || (!def &&

(hud.fade.r != HUD[DEFAULT].fade.r || hud.fade.g != HUD[DEFAULT].fade.g ||

hud.fade.b != HUD[DEFAULT].fade.b || hud.fade.a != HUD[DEFAULT].fade.a)))

{

tmp += " fade ";

sprintf(buf, "%.1f %.1f %.1f %.1f", hud.fade.r, hud.fade.g, hud.fade.b, hud.fade.a);

tmp += buf;

tmp += "\n";

}
if (def || (!def &&

(hud.angles.pitch != HUD[DEFAULT].angles.pitch || hud.angles.yaw != HUD[DEFAULT].angles.yaw ||

hud.angles.roll != HUD[DEFAULT].angles.roll || hud.angles.rotate != HUD[DEFAULT].angles.rotate)))

{

tmp += " angles ";

sprintf(buf, "%d %d %d %d", hud.angles.pitch, hud.angles.yaw, hud.angles.roll, hud.angles.rotate);

tmp += buf;

tmp += "\n";

}

if (def || (!def && hud.textalign != HUD[DEFAULT].textalign))

{

tmp += " textalign ";

if (hud.textalign == L) tmp += "L";

else if (hud.textalign == C) tmp += "C";

else if (hud.textalign == R) tmp += "R";

tmp += "\n";

}
if (def || (!def && hud.textstyle != HUD[DEFAULT].textstyle))

{

tmp += " textstyle ";

sprintf(buf, "%d", hud.textstyle);

tmp += buf;

tmp += "\n";

}
if ((def && hud.time) || (!def && hud.time && hud.time != HUD[DEFAULT].time))

{

tmp += " time ";

sprintf(buf, "%d", hud.time);

tmp += buf;

tmp += "\n";

}
if ((def && hud.fill) || (!def && hud.fill && hud.fill != HUD[DEFAULT].fill))

{

tmp += " fill";

tmp += "\n";

}
if ((def && hud.monospace) || (!def && hud.monospace && hud.monospace != HUD[DEFAULT].monospace))

{

tmp += " monospace";

tmp += "\n";

}
if ((def && hud.doublebar) || (!def && hud.doublebar && hud.doublebar != HUD[DEFAULT].doublebar))

{

tmp += " doublebar";

tmp += "\n";

}
if ((def && hud.draw3d) || (!def && hud.draw3d && hud.draw3d != HUD[DEFAULT].draw3d))

{

tmp += " draw3d";

tmp += "\n";

}
if ((def && hud.model != "") || (!def && hud.model != "" && hud.model != HUD[DEFAULT].model))

{

tmp += " model \"";

tmp += hud.model;

tmp += "\"\n";

}
if ((def && hud.image != "") || (!def && hud.image != "" && hud.image != HUD[DEFAULT].image))

{

tmp += " image \"";

tmp += hud.image;

tmp += "\"\n";

}

tmp += "}";
return tmp;

}
void CKonwerter::ZapiszHUD()

{

string path = d_path;

if (path == "") return;
string wynik = "";
int i;

for (i = path.size(); path[i] != '\'; i--);
path.resize(i + 1);

path += "hud\";
mkdir(path.c_str());
path += d_nazwapliku;

path += "hud.cfg";
hud_nazwapliku = d
nazwapliku;

hud_nazwapliku += "_hud.cfg";
/*

path.resize(path.size() - 4);
path += "_hud.cfg"

*/

ofstream plik_out(path.c_str());
for (int i = DEFAULT; i < HUDTypeSize; i++)

{

wynik += HUD2String(HUD[i]);

if (i < HUDTypeSize - 1);

wynik += "\n\n";

}

//TESTOWO!!!

//temp == "\n";

//temp += KomendyOSP[cg_EnableOSPHUD].parametr;

temp = wynik;
if (plik_out)

{

plik_out << wynik;

}
plik_out.close();

}
void CKonwerter::ZapiszConfig()

{
KomendyCPMA[ch_SelfOnTeamOverlay].name = "ch_selfonteamoverlay";

KomendyCPMA[ch_SelfOnTeamOverlay].parametr = "0";
KomendyCPMA[cg_AltLightning].name = "cg_altlightning";

KomendyCPMA[cg_AltLightning].parametr = "0";
KomendyCPMA[rate].name = "rate";

KomendyCPMA[rate].parametr = "25000";

KomendyCPMA[snaps].name = "snaps";

KomendyCPMA[snaps].parametr = "30";

KomendyCPMA[cl_TimeNudge].name = "cl_timenudge";

KomendyCPMA[cl_TimeNudge].parametr = "0";

KomendyCPMA[cl_PacketDup].name = "cl_packetdup";

KomendyCPMA[cl_PacketDup].parametr = "0";

KomendyCPMA[cg_Nudge].name = "cg_nudge";

KomendyCPMA[cg_Nudge].parametr = "0";

KomendyCPMA[cg_XerpClients].name = "cg_xerpclients";

KomendyCPMA[cg_XerpClients].parametr = "0";

KomendyCPMA[cg_OptimiseBW].name = "cg_optimisebw";

KomendyCPMA[cg_OptimiseBW].parametr = "1";

KomendyCPMA[cg_LagHax].name = "cg_laghax";

KomendyCPMA[cg_LagHax].parametr = "-1";

KomendyCPMA[cg_Predict].name = "cg_predict";

KomendyCPMA[cg_Predict].parametr = "1";

ofstream plik_out(d_path.c_str(), ios::app);

plik_out << endl << endl;

plik_out << "//OSP2CPMA Config Converter\n";
//tutaj jeszcze zapisywanie bindow wstawic
Zamieniarka();

for (int i = 0; i < CPMASize; i++)

{

if (KomendyCPMA[i].name == "snaps") continue;

plik_out << "seta "

<< KomendyCPMA[i].name << " "

<< '"' << KomendyCPMA[i].parametr << '"' << endl;
}
plik_out << "wait 10\n";

plik_out << "reloadhud\n";

plik_out << "vid_restart";
plik_out.close();

}
bool CKonwerter::NieZapisujTeraz(CCommand komenda)

{

if (komenda.type == SETA)

{

for (int i = 0; i < CPMASize; i++)

if (LowCase(komenda.name) == KomendyCPMA[i].name)

return true;

}

return false;

}
CCommand CKonwerter::Rozloz(string linia)

{

CCommand komenda;
komenda.name = "";

komenda.parametr = "";
int licznik = 0;

bool pomoc;
for (int i = 0; i < linia.size(); i++)

{

licznik = i;

if (linia[i] != ' ' && linia[i] != '\t') break;

}
if (linia.size() - licznik >= 4 && linia[licznik] == 'b' && linia[licznik + 1] == 'i' &&

linia[licznik + 2] == 'n' && linia[licznik + 3] == 'd' && (linia[licznik + 4] == ' ' || linia[licznik + 4] == '\t'))

{

komenda.type = BIND;

licznik += 5;

}

else

if (linia.size() - licznik >= 4 && linia[licznik] == 's' && linia[licznik + 1] == 'e' &&

linia[licznik + 2] == 't' && linia[licznik + 3] == 'a' && (linia[licznik + 4] == ' ' || linia[licznik + 4] == '\t'))

{

komenda.type = SETA;

licznik += 5;

}

else

if (linia.size() - licznik >= 3 && linia[licznik] == 's' && linia[licznik + 1] == 'e' &&

linia[licznik + 2] == 't' && (linia[licznik + 3] == ' ' || linia[licznik + 3] == '\t'))

{

komenda.type = SETA;

licznik += 4;

}

else

{

komenda.type = OTHER;

return komenda;

}
for (int i = licznik; i < linia.size(); i++)

{

licznik = i;

if (linia[i] != ' ' && linia[i] != '\t') break;

}

if (linia[licznik] == '"') licznik++;
for (int i = licznik; i < linia.size(); i++)

{

licznik = i;

if (linia[i] == ' ' || linia[i] == '\t' || linia[i] == '"') break;

komenda.name += linia[i];

}
for (int i = licznik; i < linia.size(); i++)

{

licznik = i;

if (linia[i] != ' ' && linia[i] != '\t') break;

}
//czytanie parametru

if (komenda.type == SETA)

{

if (linia[licznik] == '"')

{

licznik++;

pomoc = true;

}

else pomoc = false;
for (int i = licznik; i < linia.size(); i++)

{

//licznik = i;

if (pomoc && linia[i] == '"') break;

else if (!pomoc && linia[i] == ' ' || linia[i] == '\t' ) break;
komenda.parametr += linia[i];

}
}

else

if (komenda.type == BIND)

{

if (linia[licznik] == '"') licznik++;
for (int i = licznik; i < linia.size(); i++)

{

//licznik = i;

if (linia[i] == '"' && linia[i + 1] == NULL) break;

if (linia[i] == '"') linia[i] = ' ';
komenda.parametr += linia[i];
}

}

licznik++;
//seta zmienna wartosc

//jesli nie ma cudzyslowia to drugiej wartosci nie wczyta
//bind u say dupa jaja haha

//wczyta wszystko do konca linijki

return komenda;

}
ROZMIAR CKonwerter::GetRozmiar(string napis)

{

//domyslny rozmiar to 16x16

//jesli cos jest nie tak to do tego rozmiaru OSP dopasowuje
ROZMIAR rozmiar;
rozmiar.x = 16;

rozmiar.y = 16;
string x = "";

string y = "";
int licznik = 0;

int pom = 0;
if (napis.size() == 0) return rozmiar;
//sprawdza poprawnosc

for (int i = 0; i < napis.size(); i++)

{

if ((napis[i] >= '0' && napis[i] <= '9') || napis[i] == 'x');

else return rozmiar;

if (napis[i] == 'x') pom++;

}
if (pom == 0) return rozmiar;
//wczytuje rozmiar x

for (int i = 0; i < napis.size(); i++)

{

licznik = i;

if (napis[i] == 'x')

break;
x += napis[i];
}

licznik++;
for (int i = licznik; i < napis.size(); i++)

{

if (napis[i] == 'x')

break;
y += napis[i];
}
if (x == "" || y == "") return rozmiar;
rozmiar.x = atoi(x.c_str());

rozmiar.y = atoi(y.c_str());
return rozmiar;
}
MODEL CKonwerter::GetModel(string napis)

{

MODEL tmp;

tmp.model = "";

tmp.skin = "";

bool slash = 0;

for (int i = 0; i < napis.size(); i++)

{

if (napis[i] == '/')

{

slash = true;

continue;

}

if (!slash)

tmp.model += napis[i];

else

tmp.skin += napis[i];

}
return tmp;

}
string CKonwerter::LowCase(string napis)

{

char c;

int i = 0;

string str = "";

while (napis[i])

{

c = napis[i];

str += tolower(c);

i++;

}
return str;

}
void CKonwerter::DrawTeamChat(FONTSIZE fontsize, int szerokosc, int hud_wysokosc, bool inverse)

{

int wysokosc = atoi(KomendyOSP[cg_TeamChatHeight].parametr.c_str());

if (wysokosc > 8) wysokosc = 8;
if (inverse)

{

for (int i = Chat1; i < Chat1 + wysokosc; i++)

{

HUD[i].fontsize = fontsize;

HUD[i].textstyle = 0;

HUD[i].textalign = L;

HUD[i].monospace = true;

HUD[i].time = atoi(KomendyOSP[cg_TeamChatTime].parametr.c_str());

HUD[i].rect = RECT_(10, 480 - hud_wysokosc - (wysokosc - (i - Chat1)) * fontsize.y, szerokosc, fontsize.y);

}

}

else

{

for (int i = Chat1; i < Chat1 + wysokosc; i++)

{

HUD[i].fontsize = fontsize;

HUD[i].textstyle = 0;

HUD[i].textalign = L;

HUD[i].monospace = true;

HUD[i].time = atoi(KomendyOSP[cg_TeamChatTime].parametr.c_str());

HUD[i].rect = RECT_(10, 480 - hud_wysokosc - fontsize.y - (i - Chat1) * fontsize.y, szerokosc, fontsize.y);

}

}

}
void CKonwerter::DrawTeamOverlay(FONTSIZE fontsize, int hud_wysokosc, int numer)

{

if (numer == 1)

{

for (int i = Team1; i <= Team8; i++)

{

HUD[i].fontsize = fontsize;

HUD[i].color = COLOR(T);

HUD[i].bgcolor = COLOR(0, 0, 0, 0.3);

HUD[i].font = ID;

HUD[i].textstyle = 0;

HUD[i].textalign = R;

HUD[i].monospace = true;

HUD[i].time = atoi(KomendyOSP[cg_TeamChatTime].parametr.c_str());

HUD[i].rect = RECT_(0, (i - Team1) * fontsize.y, 640, fontsize.y);

}
}

else

if (numer == 2)

{

for (int i = Team1; i <= Team8; i++)

{

HUD[i].fontsize = fontsize;

HUD[i].color = COLOR(T);

HUD[i].bgcolor = COLOR(0, 0, 0, 0.3);

HUD[i].font = ID;

HUD[i].textstyle = 0;

HUD[i].textalign = R;

HUD[i].monospace = true;

HUD[i].time = atoi(KomendyOSP[cg_TeamChatTime].parametr.c_str());

HUD[i].rect = RECT_(0, 480 - hud_wysokosc - fontsize.y - (i - Team1) * fontsize.y, 640, fontsize.y);

}

}

else

if (numer == 3)

{

for (int i = Team1; i <= Team8; i++)

{

HUD[i].fontsize = fontsize;

HUD[i].color = COLOR(T);

HUD[i].bgcolor = COLOR(0, 0, 0, 0.3);

HUD[i].font = ID;

HUD[i].textstyle = 0;

HUD[i].textalign = L;

HUD[i].monospace = true;

HUD[i].time = atoi(KomendyOSP[cg_TeamChatTime].parametr.c_str());

HUD[i].rect = RECT_(0, 480 - hud_wysokosc - fontsize.y - (i - Team1) * fontsize.y, 640, fontsize.y);

}

}

}

l1nk

5382

Od: 2003-04-07

Ranga: BFG Fragger

Dodano dnia: 2011-02-27 10:54:27

Obowiazkowo musze dodac ten topic do fapfolderu.

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 11:01:04

Ciekawy porno-fragment z powyższego kodu:

rozmiar = GetRozmiar(KomendyOSP[cf_FragMsg].parametr.c_str());

int maniek = 0;

if (rozmiar.x > rozmiar.y) maniek = rozmiar.x;

else maniek = rozmiar.y;

Alchemik

7874

Od: 2003-10-27

Ranga: Lightning Smasher

Dodano dnia: 2011-02-27 11:12:22

No Maniek, niezły kawał koda. I straszno, i śmieszno :d

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 11:18:16

Teraz Objective-C ogarniam i będę próbował szczęścia na iPhone. Mam fajne pomysły na gry :)

l1nk

5382

Od: 2003-04-07

Ranga: BFG Fragger

Dodano dnia: 2011-02-27 11:20:36

A pawuj sie juz c# nauczyl? :P

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 11:22:49

Prędzej ja zostanę milionerem niż on się nauczy programowania.

tath

14654

Od: 2006-04-18

Ranga: Lightning Smasher

Dodano dnia: 2011-02-27 11:23:43

o, to ten konwerter byl w builderze robiony <3

alt text

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 11:27:01

tath napisał:
> o, to ten konwerter byl w builderze robiony <3
Nie. W DevCpp za pomocą bilbioteki wxWidgets. Wszystko robione w kodzie.

Po czym wniosłeś, że w builderze?

tath

14654

Od: 2006-04-18

Ranga: Lightning Smasher

Dodano dnia: 2011-02-27 11:34:32

[M]aniek napisał:
> tath napisał:
>
>
> > o, to ten konwerter byl w builderze robiony <3
>
>
> Nie. W DevCpp za pomocą bilbioteki wxWidgets. Wszystko robione w kodzie.
>
> Po czym wniosłeś, że w builderze?
ostatno cos staralem sie robic w VS api i wszystko nie wygladajace na vs (czyli czytelne) kojarzy mi sie z BCB :D

najwyrazniej niepoprawnie :D

alt text

[M]aniek

7748

Od: 2003-10-15

Ranga: Quad Damager

Dodano dnia: 2011-02-27 11:54:35

Akurat ten fragment co wkleiłem nie ma nic wspólnego z okienkami, mógłby działać nawet w konsoli.

A poza tym to jest czytelne, trzeba się tylko dobrze wczytać :)

Xsi

5838

Od: 2003-05-13

Ranga: BFG Fragger

Dodano dnia: 2011-02-27 12:47:31

> ostatno cos staralem sie robic w VS api...
W czym??

tath

14654

Od: 2006-04-18

Ranga: Lightning Smasher

Dodano dnia: 2011-02-27 13:01:32

Xsi napisał:
> > ostatno cos staralem sie robic w VS api...
>
>
> W czym??
visual studio i win32 api ?

alt text