Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old December 10, 2014, 14:06   #1
LPomelo
Rookie
 
LPomelo's Avatar
 
Join Date: Dec 2014
Posts: 2
LPomelo is on a distinguished road
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 at 14:13.
LPomelo is offline   Reply With Quote
Old December 15, 2014, 02:53   #2
Serephina
Rookie
 
Join Date: Dec 2014
Posts: 23
Serephina is on a distinguished road
What compilation options did you use? My linux Sil's always don't have animations such as damage popups or arrows. Kinda a drag.
Serephina is offline   Reply With Quote
Old December 31, 2014, 18:41   #3
LPomelo
Rookie
 
LPomelo's Avatar
 
Join Date: Dec 2014
Posts: 2
LPomelo is on a distinguished road
Quote:
Originally Posted by Serephina View Post
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.
LPomelo is offline   Reply With Quote
Reply

Tags
sil windows layout ubuntu


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thoughts on dungeon features/terrain/layout/interaction. DanielKennethRego Sil 4 June 6, 2014 09:20
Angband 3.4.1 screen resolution Loki922 Variants 4 April 22, 2013 08:09
Town layout awldune Vanilla 23 July 30, 2010 16:31
[Un] Line endings - Windows or Unix? andrewdoull Variants 8 September 29, 2008 00:30
Viewing/resolution orbs Vanilla 3 March 29, 2008 04:05


All times are GMT +1. The time now is 04:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.