skerit / romcollectionbrowser

Automatically exported from code.google.com/p/romcollectionbrowser
GNU General Public License v2.0
0 stars 0 forks source link

Random game option #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Today i got a idea for a random game option. So I was possible to make the 
changes by myself. This changes are made with the latest SVN version. Hope you 
like it.

edited file: /lib/gui.py
row #: 3
row type: edited 
row orginal: import string, glob, time, array, os, sys, shutil, re
row new: import string, glob, time, array, os, sys, shutil, re, random

row #: 47
row type: newline
row new: CONTROL_BUTTON_RANDOM_GAME = 1200

row #: 447 onclick event
row type: new elseif
row new: elif (controlId == CONTROL_BUTTON_RANDOM_GAME):
        pos = random.randint(1,self.getListSize())
        self.setCurrentListPosition(pos);
        self.launchEmu()

editied file: /skins/default/script:Rom_Collection_Browser-main.xml
row #: 1167
row type: new button control
row new: <control type="button" id="1200"> 
        <description>Random game</description>
        <posx>25</posx>
        <posy>114</posy>
        <width>200</width>
        <height>30</height>
        <visible>true</visible>
        <colordiffuse>DDFFFFFF</colordiffuse>
        <texturefocus>rcb-button-focus.png</texturefocus>
        <texturenofocus>rcb-button-nofocus.png</texturenofocus>
        <label>Random Game</label>          
        <textcolor>DDFFFFFF</textcolor>
        <disabledcolor>80FFFFFF</disabledcolor>
        <align>left</align>
        <aligny>center</aligny>
        <textoffsetx>7</textoffsetx>
        <textoffsety></textoffsety>
        <pulseonselect></pulseonselect>
        <onup>1100</onup>
        <ondown>50</ondown>
        <onleft>900</onleft>
        <onright>500</onright>
    </control>

Original issue reported on code.google.com by quidohoe...@gmail.com on 20 Jul 2011 at 2:12

GoogleCodeExporter commented 9 years ago
Thanks a lot. I am sure I will add this option in the main line.

Original comment by maloep on 21 Jul 2011 at 7:31