Golem1988 Posted August 20, 2012 Group: Members Topic Count: 57 Topics Per Day: 0.01 Content Count: 162 Reputation: 1 Joined: 08/08/12 Last Seen: December 10, 2023 Share Posted August 20, 2012 (edited) Please tell me, how should config code look like to add some new buttons? For example Vote and Register... What I tryed to do is: [button:register] Default='images/reg1.png' OnHover='images/reg2.png' OnDown='images/reg3.png' URL='http://link.to.my/reg.site.php' Left=570 Top=280 Hook='Register' Wont open anything Found an answer: [button:Register] Default='images/register.png' OnHover='images/register_hover.png' OnDown='images/register_hover.png' Left=522 Top=275 Mode='1' Action='http://link.to.my/reg.site.php' SOLVED! Edited August 20, 2012 by Golem1988 Quote Link to comment Share on other sites More sharing options...
chatterboy Posted May 1, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 309 Reputation: 26 Joined: 11/26/12 Last Seen: November 22, 2024 Share Posted May 1, 2013 Not work // Thor Patcher Internal Config File// Note: any entry leaves as blank will use default value// True = 1// False = 0// Note that true or 1 both works fine (that's why I put "=")//base_url - everything except patch files will read from here//The address should point to a directory with / at end//// example:// http://domain.com/patch/// NOT// http://domain.com/patch//base_url=http://127.0.0.1/thor///notice_file - [Relative Address]//You should able to access this file by combine base_url & notice_filenotice_file=notice.html//core_file - [Relative Address]//this internal config file only store whats required,//but core_file is a remote config file that stores on your web hostcore_file=main.ini//TimeOut - timeout of connection in seconds//0 is default setting, leave it as 0 unless you know what you are doing!TimeOut=0//=============================// File below is on local disk//=============================[Local]//status_file - [Relative Address]//It used to store information such as last patch id etc,status_file=server.dat//grf_file - [Relative Address]grf_file=bdata.grf//client_file - [Relative Address]//It's GAME EXE not patcher'sclient_file=besprenro.exe//client_parameter - [self Explained]client_parameter=-1sak1//-----------------------------------------------------------------------//// Below are advanced settings, it is not required for patcher to work////-----------------------------------------------------------------------//=============================// Custom Skin controls//=============================[skin]//windows_autosize - if set to 1, window size will automatically change depend on content sizewindows_autosize=true//windows_mode - How should windows presented?// None - Borderless window// Single - Window cannot resized// Sizeable - ... what it says, however it can not resize when windows_autosize set to true / 1window_style=None// Width and Height of window//windows_autosize set to 0 for this to work// Min: 1 Max: 10000 (I don't think you would need that big)window_width=600window_height=800// If set to true, user able to drag window by click images (background)// recommended to true especially for boarderless windowwindow_handle_move=true// Image for background (DOES NOT READ FROM DIRECTORY OF PATCHER, the config packer will put image inside patcher too)// Support : jpg bmp// Note : patcher determine image format by filename extension, use with care!background_file=images/bg.jpg//New style of progress bar, it used image.NewProgressBar=False//Image of progress bar(only when ProgressBar set to true, currently only BMP & JPG supported)ProgressBar_back=ProgressBar_front=// how big is progress bar? (only when NewProgressBar set to false)progress_bar_width=305progress_bar_height=11// Position of progress barprogress_bar_left=30progress_bar_top=495//Custom progress bar color//Use hexadecimal of RGB [eg. #4C7D7E]//Color for back of progress bar.progress_bar_backcolor=#f47835progress_bar_backcolor_end=#48a627//Color for front of progress bar.progress_bar_barcolor=progress_bar_barcolor_end=// Status message width (the one shows what patcher currently doing)// no heightstatus_width=// Text alignment// Left , Center , Rightstatus_alignment=Left// Positionstatus_left=35status_top=560//Color for status, in hexadecimal of RGB [eg. #123456]status_color=#d41243// control notice (News box? Mini web browser? you name it)notice_width=480notice_height=350notice_left=19notice_top=180// For start buttonstart_normal=images/startBTN.pngstart_hover=images/startBTNhover.pngstart_down=images/startBTN.pngstart_left=650start_top=190// For Exit buttonexit_normal=images/exitBTN.pngexit_hover=images/exitBTNhover.pngexit_down=images/exitBTN.pngexit_left=650exit_top=235// for cancel buttoncancel_normal=images/cancel1.pngcancel_hover=images/cancel2.pngcancel_down=images/cancel3.pngcancel_left=610cancel_top=482// How many custom buttons you want to create?// Can create up to 255 buttons (Plenty enough)buttons=1// - Custom buttons -//As you can see below, it's not that hard to make custom buttons//the number after "button" is id(depends on how many you set in buttons)// Again, note that all image files will be embed into patcher.// _normal - image file when button is in normal statusbutton1_normal=images/donateBTN.png// _hover - image file when user hover on itbutton1_hover=images/donateBTNhover.png// _down - image file when user mouse down on itbutton1_down=images/donateBTN.png// _left/_top - position of buttonbutton1_left=505button1_top=190// _mode - mode for button// 0 = open URL// 1 = Launch file/program// 2 = Message box// 3 = Reservedbutton1_mode=0// _action - depend on what you set in _mode, this may vary// ex. _mode = 0 , _action=http://google.com// which makes user open that URL address after click that buttonbutton1_action=http://#[button:Register]button2_normal='images/registerBTN.png'button2_hover='images/registerBTNhover.png'button2_down='images/registerBTN.png'Left=505Top=275button2_Mode='1'button2_Action='http://link.to.my/reg.site.php'// _file - Client file//button1_file=//_parameter - Client parameter//button1_parameter=-1sak1[bGM]//Background music, leave empty to disable (mp3/mid)//Side note: Personally, I don't like background music in this kind situation, so think about players.bgm=//Loop play backgroun music? (play over and over)//Does not work for MIDIBGMLoop=False//Change volume XD (1-100) [No 0.. pointless] [MP3 ONLY]// Recommended value: 40-60 [Respect player's ears please]// Default: 100Volume=100//Note: This will override "bgm" entry when set!//When set, patcher will scan all mp3 in specific directory (use relative path)//It will random choose one when launch//eg. ./BGM/BGMDir=[Misc]//Set to true if you want patcher allow to start game when unable to connect webserverContinue On Connection Fail=False//What will the window title called?Title=Thor Patcher Quote Link to comment Share on other sites More sharing options...
Question
Golem1988
Please tell me, how should config code look like to add some new buttons?
For example Vote and Register...
What I tryed to do is:
Wont open anything
Found an answer:
SOLVED!
Edited by Golem1988Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.