View Single Post
Old 12-14-2010, 08:10 AM   #89
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Update: Mahjong for Touch

Hi everyone,

I just finished a first-pass attempt at a Touch-compatible version of Clemenseken's Mahjong game.

To activate Touch in the Test Environment, edit eBookSimMain.xml and change

Code:
				 case "Mahjong" : {
				 				this.EINK.VIEW.setURI("../addons/Mahjong/mahjong.xml");				
								break;
								}
to

Code:
				 case "Mahjong" : {
				 				kbook.autoRunRoot.getSoValue = _Core.system.getSoValue;
				 				kbook.autoRunRoot.hasNumericButtons = _Core.config.compat.hasNumericButtons;
								this.EINK.VIEW.setURI("../addons/Mahjong/mahjong.xml");				
								break;
								}
Hope it works for you!

Sincerely,
Ben.

EDIT 1: Removed some unnecessary graphics at the top of the screen.

EDIT 2: Fixed menu bug in non-Touch (thanks Mark!) and added two buttons to the Touch version: "New layout" and "Easy/Normal" (again, thanks to Mark for the redeployed Calculator buttons!). I think that's it...

UPDATE: Latest version now found in post #145.

Last edited by BenChen; 02-10-2011 at 08:04 AM. Reason: Zip file moved to post #145
BenChen is offline   Reply With Quote