Results 1 to 3 of 3

Thread: 2 questions when start using Clanlib GUI moudule

  1. #1
    Join Date
    May 2010

    Default 2 questions when start using Clanlib GUI moudule

    I just start using Clanlib, and I have 2 questions about the GUI module so far:

    1. Does the GUI module support languages besides english, like jappaness or chinese?
    Because I want to show janpaness and chinese in my GUI.

    2. I make 2 GUI layouts using the GUI editor, first is the "Login" layout and the second is the "Lobby" layout.
    I want to know how to switch between "Login" layout and "Lobby" layout. I can't figure out how to do this.

    Thanks in advance for your help!

    Additional question:
    I notice in the GUILayout example that after loading layout by calling "window.create_components("layout.xml");",
    the position of the window will move a little automatically , how does this happens? But I want to make the window still after a layout is loaded.
    Last edited by westpointer; 05-22-2010 at 01:12 PM.

  2. #2
    Join Date
    May 2010


    Hopefully this will help you westpointer, but I cannot say it is accurate.

    1. I imagine you can localize it but I think it is down to what fonts you register and use that support foreign characters?

    2. CL_GUIComponent has the function set_layout(CL_GUILayout& layout), which would allow you specify which layout is to be used, perhaps that is what you need?

    Hope it offers you some help.

  3. #3
    ClanLib Developer
    Join Date
    May 2007


    There is currently a problem with clanlib's font drawing routines on linux and windows (without unicode build).

    It is not reading UTF-8 code correctly to obtain the glyph from freetype.

    This is being addressed in ClanLib 2.2 (SVN). (I don't know when it will be fixed though)

    It currently only works in ClanLib 2.1.1 Win32 Unicode build.

Similar Threads

  1. C2660 with CL_Thread::start
    By Kanraku in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 05-17-2010, 04:46 AM
  2. ClanLib 0.9 GUI Questions
    By rombust in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 02-10-2009, 01:17 PM
  3. Novashell wont start: MAC Bug
    By baka_penguin in forum Novashell Game Creation System
    Replies: 7
    Last Post: 04-06-2008, 09:07 PM
  4. Screwed Up! Do I Have to Start Over?
    By in forum Dink Smallwood HD
    Replies: 1
    Last Post: 01-05-2006, 03:09 PM
  5. Someone start a new TOURNEY server
    By in forum Funeral Quest
    Replies: 3
    Last Post: 04-08-2004, 09:44 PM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts