Jump to content

Umnik

Members
  • Posts

    32
  • Joined

  • Last visited

Profile Information

  • Location
    Russia, Ramenskoe

Umnik's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello all. Tell my how to make a statusbar for the boot process the scene. To the player could see the readiness stage for the game.
  2. TPick pick; if(MouseHit(1)) { HideEntity(character); if(CameraPick(&pick,camera,Vec3(MouseX(),MouseY(),200.0))) { PositionEntity(cursor,Vec3(pick.X,pick.Y+0.25,pick.Z)); } ShowEntity(character); } You need use HideEntity() && ShowEntity()!
  3. Thank you very much, you as always excellent, everything works!
  4. Who has any have any thoughts on this matter?
  5. yeah. But my problem is never decided! Here is my new problem:
  6. i find bug. in INI file. Error variant: [FontData] 0Char=32 0A=0 0C=3 0Wid=9 0Hgt=22 0X1=0,0078125 0Y1=0,00390625 0X2=0,04296875 0Y2=0,046875 1Char=33 worked variant: [FontData] 0Char=32 0A=0 0C=3 0Wid=9 0Hgt=22 0X1=0.0078125 0Y1=0.00390625 0X2=0.04296875 0Y2=0.046875 1Char=33 need , replace .
  7. But up to 255 characters there is not one letter of Russian alphabet. How can I be?
  8. my font file: http://dev.ramgames.ru/temp/font.rar i use @Arial Unicode MS 10px
  9. I make cyrillic fonts in Font Studio. I used the instruction: http://www.leadwerks.com/wiki/index.php?title=LoadFont As a result, I do not see not a single letter in the text. Using SetBlend (1) the text disappears completely. SetFont(LoadFont("abstract::cyrrilic")); ... ... DrawText(0,100,"Test Cyrrilic: Привет медвед!"); my font file: http://dev.ramgames.ru/temp/font.rar
  10. Umnik

    GetEntityKey ?

    Thanks! hmm... Model { path="firepit.gmf" position=-2.00000000,0.000000000,-6.00000000 rotation=-0.000000000,-0.000000000,0.000000000 scale=1.00000000,1.00000000,1.00000000 id=205114888 "class"="Model" "intensity"="1.0" "name"="firepit_1" } Return value "Mesh" Return value "Scene Root" This is because I use CameraPick method?
  11. Umnik

    GetEntityKey ?

    DrawText(0,116,"%s",name); I click to model and not see name! Return value (null). What?
  12. Umnik

    GetEntityKey ?

    As with GetEntityKey know Name of the object, such as a firepit model. TPick pick2; if(MouseHit(1)) { HideEntity(character); HideEntity(waycursor); if(CameraPick(&pick2,fw.GetMain().GetCamera(),Vec3(MouseX(),MouseY(),1000.0))) { string name; name=GetEntityKey(pick2.entity,"name"); PositionEntity(cursor,Vec3(pick2.X,pick2.Y+0.25,pick2.Z)); } ShowEntity(waycursor); ShowEntity(character); } ... if (!pick2.entity) { DrawText(0,100,"%s",GetEntityKey(pick2.entity,"name")); } DrawText(0,116,"%s",name); Not Worked ;( Please help me!
  13. Is anyone an give me example please: Handling events on click mouse in Model. I want to create the object NPC and do not know where to start. How work RayCasting I know. I do not understand how to determine the name of the object, then to make a [if] operator. Thanks.
  14. Thanks! This work sample: #include <windows.h> #include <stdio.h> int main() { int WindowWidth, WindowHeight; WindowWidth = GetPrivateProfileInt (TEXT("GRAPHICS"), TEXT("Width"), 0, TEXT(".//setting.ini")); WindowHeight = GetPrivateProfileInt (TEXT("GRAPHICS"), TEXT("Height"), 0, TEXT(".//setting.ini")); printf ("Key: %i\n", WindowWidth); printf ("Key: %i\n", WindowHeight); return(1); } setting.ini [GRAPHICS] Width=800 Height=600 Suddenly, someone will need ...
  15. Hello! Please share an example of reading the program settings from ini file. I would be grateful for any example, thank you!
×
×
  • Create New...