Xmahjongg 135 additional layouts!
Xmahjongg 135 additional layouts!
I've just found out that layouts from this page, originally made for "Kyodai Mahjong" can be used with Xmahjongg. I repackaged it with names converted without spaces and other characters that might cause troubles, so here is attached zip, unzip and copy layouts to your xmahjongg layouts directory (mine is at /usr/share/xmahjongg/layouts ) and have fun, there are some interesting ones.
- Attachments
-
- layouts.zip
- (39.35 KiB) Downloaded 279 times
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
http://puppylinux.org/wikka/XmahjonggGame?redirect=no8Geee wrote:Xmahjongg
Is there a link for slacko 14.0 based? Sounds cool.
also:
http://ftp5.gwdg.de/pub/linux/archlinux ... pkg.tar.xz
but....you will need to rename to .txz and it doesn't seem to have a menu .desktop so you will need to run from terminal.
Changing layout seems to be only possible by command line switch:
http://www.lcdf.org/xmahjongg/man.html
I may repackage into a pet......
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
On the original site mention is made of a Mohave tcl/tk graphical launcher, (by David Leo). Since everything puppy seemed to be aiming for small is beautiful, I packaged it as a pet, without a lot of layouts, backgrounds etc, weighing in at 100k.
If anyone wants to try the mohave launcher, with all the layouts etc, weighing in at 6.88M, I've uploaded it here.
Also need tcl/tk libraries installed.
If anyone wants to try the mohave launcher, with all the layouts etc, weighing in at 6.88M, I've uploaded it here.
Also need tcl/tk libraries installed.
- Attachments
-
- mohave.jpg
- (62.13 KiB) Downloaded 405 times
Updated 9-mar-2015
Here is the pet I have made.....with help from dejan555
xmahjongg-3.7-5.pet
No dependencies other than gtkdialog
Here is the pet I have made.....with help from dejan555
xmahjongg-3.7-5.pet
No dependencies other than gtkdialog
Last edited by peebee on Mon 09 Mar 2015, 11:07, edited 4 times in total.
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Crude but gives a gui list..you might want to play and adjust the paths
mike
Code: Select all
#!/bin/bash
PROGPATH="/usr/local/mahjongg"
while [ 1 ]; do
export PPROCESS="
<window title=\"Mahjongg Layout Chooser \"icon-name=\"gtk-execute\">
<vbox>
<hbox>
<button>
<input file>/usr/share/mini-icons/mahjongg.png</input>
<label>Play</label>
</button>
<button><input file stock=\"gtk-quit\"></input>
<label>Quit</label>
</button>
</hbox>
<tree headers_visible=\"false\">
<label>hei</label>
<width>260</width><height>400</height>
<variable>LIST</variable>
<input>ls -1 /usr/local/mahjongg/share/layouts</input>
</tree>
</vbox>
</window>"
I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog3 --program=PPROCESS --center); do
eval $STATEMENTS
done
IFS=$I
case $EXIT in
Play)
/usr/local/mahjongg/xmahjongg -B /usr/local/mahjongg/share -g 800x600 -t gnome --bg green -l "$LIST"
;;
*)
exit
;;
esac
done
- Attachments
-
- majh.png
- (19.82 KiB) Downloaded 385 times
This is what I used for my xmahjongg pets
Code: Select all
#!/bin/sh
#Simple GTK dialog gui for xmahjongg by dejan555
## CONFIG
export TILES=`for i in $(ls /usr/share/xmahjongg/tiles); do echo "<item>$(echo $i | sed 's/.gif//')</item>";done`
export LAYOUTS=`for i in $(ls /usr/share/xmahjongg/layouts); do echo "<item>$i</item>";done`
export BGS=`for i in $(ls /usr/share/xmahjongg/backgrounds); do echo "<item>$(echo $i | sed 's/.gif//')</item>";done`
LAYOUT_ITEMS="<item>default</item>$LAYOUTS"
TILE_ITEMS="<item>default</item>$TILES"
BG_ITEMS="<item>default</item>$BGS"
## FUNCTIONS
set -a #export all functions
run_game () {
xmahjongg --layout $LAYOUT --tileset $TILESET --background $BG &
}
export GUI='
<window title="Run Xmahjongg" resizable="false">
<vbox>
<hbox>
<text><label>Xmahjongg</label></text>
</hbox>
<frame>
<hbox>
<text><label>Choose Layout:</label></text>
</hbox>
<hbox>
<combobox>
<variable>LAYOUT</variable>
'$LAYOUT_ITEMS'
</combobox></hbox>
<hbox>
<text><label>Choose Tileset:</label></text>
</hbox>
<hbox>
<combobox>
<variable>TILESET</variable>
'$TILE_ITEMS'
</combobox></hbox>
<hbox>
<text><label>Choose Background:</label></text>
</hbox>
<hbox>
<combobox>
<variable>BG</variable>
'$BG_ITEMS'
</combobox></hbox>
<hbox>
<button>
<label>Run</label>
<input file stock="gtk-media-play"></input>
<action>run_game &</action>
<action type="exit">EXIT_NOW</action>
</button>
<button>
<input file icon="gtk-stop"></input>
<label>Exit</label>
<action type="exit">EXIT_NOW</action>
</button>
</hbox>
</frame>
</vbox>
</window>'
gtkdialog3 --program=GUI --center
exit 0
- Attachments
-
- gxmahjongg.png
- (11.18 KiB) Downloaded 362 times
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
Thanks dejan555 - I've incorporated your option chooser into my pet and updated it.
Cheers
peebee
Cheers
peebee
- Attachments
-
- Screenshot.png
- (19.21 KiB) Downloaded 302 times
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64