https://www.icyphoenix.com/viewtopic.php?f=36&t=5894&p=39797#p39797
-----------------------------------
Lopalong
Tue 26 May, 2009 01:51

Re: Sudoku Images For Dark Styles
-----------------------------------
A lot of things depend on people's point of view. :P

Even on how to add the extra coloured tiles without having to edit "Global" default configs which can and will more than likely reverse the same problem for light styles. Or not having to add the "new" colours to each and every darkish template either.

e.g.

Create a folder sudoku-bw (Black & White) and copy the changed tiles to that.

Copy the folder sudoku-bw to templates/common/images/sudoku-bw/*.*

Open: Any dark theme folder and in the "style.cfg" (pearl.cfg for example).

Find:

include(IP_ROOT_PATH . 'templates/default/default.cfg');

After Add:

[code linenumbers=false]// SUDOKU - BEGIN 
if (defined('IN_SUDOKU')) 
{ 
    $images['sudoku_x'] = $common_images . 'sudoku-bw/sudoku_blank.gif'; 
    $images['sudoku_1'] = $common_images . 'sudoku-bw/1_given.gif'; 
    $images['sudoku_2'] = $common_images . 'sudoku-bw/2_given.gif'; 
    $images['sudoku_3'] = $common_images . 'sudoku-bw/3_given.gif'; 
    $images['sudoku_4'] = $common_images . 'sudoku-bw/4_given.gif'; 
    $images['sudoku_5'] = $common_images . 'sudoku-bw/5_given.gif'; 
    $images['sudoku_6'] = $common_images . 'sudoku-bw/6_given.gif'; 
    $images['sudoku_7'] = $common_images . 'sudoku-bw/7_given.gif'; 
    $images['sudoku_8'] = $common_images . 'sudoku-bw/8_given.gif'; 
    $images['sudoku_9'] = $common_images . 'sudoku-bw/9_given.gif'; 
    $images['sudoku_11'] = $common_images . 'sudoku-bw/11_given.gif'; 
    $images['sudoku_12'] = $common_images . 'sudoku-bw/12_given.gif'; 
    $images['sudoku_13'] = $common_images . 'sudoku-bw/13_given.gif'; 
    $images['sudoku_14'] = $common_images . 'sudoku-bw/14_given.gif'; 
    $images['sudoku_15'] = $common_images . 'sudoku-bw/15_given.gif'; 
    $images['sudoku_16'] = $common_images . 'sudoku-bw/16_given.gif'; 
    $images['sudoku_17'] = $common_images . 'sudoku-bw/17_given.gif'; 
    $images['sudoku_18'] = $common_images . 'sudoku-bw/18_given.gif'; 
    $images['sudoku_19'] = $common_images . 'sudoku-bw/19_given.gif'; 
    $images['sudoku_21'] = $common_images . 'sudoku-bw/1_ran.gif'; 
    $images['sudoku_22'] = $common_images . 'sudoku-bw/2_ran.gif'; 
    $images['sudoku_23'] = $common_images . 'sudoku-bw/3_ran.gif'; 
    $images['sudoku_24'] = $common_images . 'sudoku-bw/4_ran.gif'; 
    $images['sudoku_25'] = $common_images . 'sudoku-bw/5_ran.gif'; 
    $images['sudoku_26'] = $common_images . 'sudoku-bw/6_ran.gif'; 
    $images['sudoku_27'] = $common_images . 'sudoku-bw/7_ran.gif'; 
    $images['sudoku_28'] = $common_images . 'sudoku-bw/8_ran.gif'; 
    $images['sudoku_29'] = $common_images . 'sudoku-bw/9_ran.gif'; 
} 
// SUDOKU - END[/code]

The same process can be used for "other" colours also - even polka-dotted ones. ;)


