Text alignment Extended char info

Results 1 to 4 of 4
  1. #1
    Owner raventh1984 is offline
    MemberRank
    May 2011 Join Date
    NetherlandsLocation
    1,499Posts

    Text alignment Extended char info

    Hi all,

    Well most of you have seen me in the past working on sources etc.
    I am back for anyone who is willing to know..

    But i will get to the point

    I am having an bit of trouble with the alignment of the text of the Extended char info.

    I know its inside WndField.cpp

    But for some reason i forgot what i need to change.

    I am talking about this



    Some things needs to be aligned an part to the right.

    Any tips will do.


  2. #2
    Novice Fenris is offline
    MemberRank
    Sep 2011 Join Date
    RE:ℓσα∂Location
    69Posts

    Re: Text alignment Extended char info

    Look for the prints of the values. And then change the x and y ?

  3. #3
    banana kamote is offline
    MemberRank
    Mar 2012 Join Date
    Maplewood, MOLocation
    326Posts

    Re: Text alignment Extended char info

    ^ It should be on the ondraw function of the CWndCharacterDetail or if you're using a different one. and just change the value of the x cause it looks like the y is fine. the variable x should be before the p2DRender->textout

  4. #4
    Owner raventh1984 is offline
    MemberRank
    May 2011 Join Date
    NetherlandsLocation
    1,499Posts

    Re: Text alignment Extended char info

    Thanks both for the tips. Its solved.
    I only need to solve one thing though

    That is if you hover your mouse over the STR stat you will have an notice box.

    Well i tried to alter the Y axis but it isnt going down.

    Code:
    rectHittest[0].SetRect( 10, 52+ nyAdd, 80, 65 + nyAdd); //First 10=x second=Y Third = width 4th = height
    	rectHittest[1].SetRect( 10, 67+ nyAdd, 80, 80 + nyAdd);
    	rectHittest[2].SetRect( 10, 82+ nyAdd, 80, 95 + nyAdd);
    	rectHittest[3].SetRect( 10, 97+ nyAdd, 80, 110 + nyAdd);
    	rectHittest[4].SetRect( 10, 112+ nyAdd, 160, 125 + nyAdd);
    I have added an comment line to it. But i dont think i have it right. Cause if i change the 2nd value the STR box with the info is no where to been seen.



Advertisement