Windows layout for 1366x768 resolution (Unix)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LPomelo
    Rookie
    • Dec 2014
    • 2

    Windows layout for 1366x768 resolution (Unix)

    Hi guys! I'm kind of new to Sil, Unix (I'm using Ubuntu), and this forum. After compiling the source, I spent some time trying to figure out how to customize the windows for my 1366x768 resolution; took me a while though (nooob! ), but I did it. I edited the silx file, like this:

    Code:
    #!/bin/sh
    
    # Describe attempt
    echo "Launching Sil..."
    sleep 1
    
    # Main window
    SIL_X11_FONT_0=10x20;   export SIL_X11_FONT_0
    SIL_X11_AT_X_0=1;       export SIL_X11_AT_X_0
    SIL_X11_AT_Y_0=1;       export SIL_X11_AT_Y_0
    SIL_X11_COLS_0=94;      export SIL_X11_COLS_0
    SIL_X11_ROWS_0=25;      export SIL_X11_ROWS_0
    
    # Inventory window
    SIL_X11_FONT_1=6x12;    export SIL_X11_FONT_1
    SIL_X11_AT_X_1=1296;    export SIL_X11_AT_X_1
    SIL_X11_AT_Y_1=247;     export SIL_X11_AT_Y_1
    SIL_X11_COLS_1=70;      export SIL_X11_COLS_1
    SIL_X11_ROWS_1=20;      export SIL_X11_ROWS_1
    
    # Equipment window
    SIL_X11_FONT_2=6x12;    export SIL_X11_FONT_2
    SIL_X11_AT_X_2=1296;    export SIL_X11_AT_X_2
    SIL_X11_AT_Y_2=0;       export SIL_X11_AT_Y_2
    SIL_X11_COLS_2=70;      export SIL_X11_COLS_2
    SIL_X11_ROWS_2=16;      export SIL_X11_ROWS_2
    
    # Combat Rolls window
    SIL_X11_FONT_3=6x12;    export SIL_X11_FONT_3
    SIL_X11_AT_X_3=1296;    export SIL_X11_AT_X_3
    SIL_X11_AT_Y_3=547;     export SIL_X11_AT_Y_3
    SIL_X11_COLS_3=70;      export SIL_X11_COLS_3
    SIL_X11_ROWS_3=18;      export SIL_X11_ROWS_3
    
    # Monster Recall window
    SIL_X11_FONT_4=6x12;    export SIL_X11_FONT_4
    SIL_X11_AT_X_4=0;       export SIL_X11_AT_X_4
    SIL_X11_AT_Y_4=0;       export SIL_X11_AT_Y_4
    SIL_X11_COLS_4=0;       export SIL_X11_COLS_4
    SIL_X11_ROWS_4=0;       export SIL_X11_ROWS_4
    
    # Character window
    SIL_X11_FONT_5=6x12;    export SIL_X11_FONT_5
    SIL_X11_AT_X_5=0;       export SIL_X11_AT_X_5
    SIL_X11_AT_Y_5=0;       export SIL_X11_AT_Y_5
    SIL_X11_COLS_5=0;       export SIL_X11_COLS_5
    SIL_X11_ROWS_5=0;       export SIL_X11_ROWS_5
    
    # Messages window
    SIL_X11_FONT_6=6x12;    export SIL_X11_FONT_6
    SIL_X11_AT_X_6=1;       export SIL_X11_AT_X_6
    SIL_X11_AT_Y_6=746;     export SIL_X11_AT_Y_6
    SIL_X11_COLS_6=156;     export SIL_X11_COLS_6
    SIL_X11_ROWS_6=15;      export SIL_X11_ROWS_6
    
    # Gamma correction
    SIL_X11_GAMMA=142;      export SIL_X11_GAMMA
    
    # Launch SIL
    ./sil -mx11 -- -n7 &
    I like to have the Messages window insted of the Recall one. I don't know if this is the best way to do it, but it works for me. Please let me now if there is a better way to adapt the windows to different resolutions.

    EDIT: Screenshot preview:

    Last edited by LPomelo; December 10, 2014, 15:13.
  • Serephina
    Rookie
    • Dec 2014
    • 23

    #2
    What compilation options did you use? My linux Sil's always don't have animations such as damage popups or arrows. Kinda a drag.

    Comment

    • LPomelo
      Rookie
      • Dec 2014
      • 2

      #3
      Originally posted by Serephina
      What compilation options did you use? My linux Sil's always don't have animations such as damage popups or arrows. Kinda a drag.
      I used the default ones with X11 uncommented

      Code:
      ##
      ## Standard -- "main-x11.c" & "main-gcu.c"
      ##
      CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU"
      LIBS = -lX11 -lcurses
      I'm using Ubuntu 14.04 LTS, 64 bits.

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎