How to add tabs to the DShop?

09/11/2009 16:46 FattyB#1
I can get the extra tabs to show up, but when you click on them, it does not do anything. I do have items added to the tablist.csv for tab 5 and 6. Can anyone point me in the right direction?

Open “data\script\ui\game2\newcashshop\ui_newcashshopwn d.txt” and add the code. NOTE: 900 refers to <cate> 900 and under that, the items in 62, 63 refer to the text in “data\script\string\stringtable_cash.txt”

***EDIT: Added the "code" windows so the text doesnt get all jammed together.

For Primum tab add

Code:
		<button>
			id			btn_tab_5
			enable			true
			visible			true
			layer			100
			align 			center
			rect			359 21 70 22
			<image>
				key		none
				screen		etc_01
				index 		55
			</image>
			<image>
				key		check
				screen		etc_01
				index 		54
			</image>
			<title>
				state 		none
				color		ff929292
				fontIndex	2
				position	0 6
				text2 		900 62
			</title>
			<title>
				state 		over
				color		ffffffff
				fontIndex	2
				position	0 6
			</title>
			<title>
				state 		down
				color		ff929292
				fontIndex	2
				position	1 7
			</title>
			<title>
				state 		check
				color		ffffffff
				fontIndex	2
				position	0 4
			</title>
		</button>
If you want the Package tab, also add this
Code:
		<button>
			id			btn_tab_6
			enable			true
			visible			true
			layer			100
			align 			center
			rect			429 21 70 22
			<image>
				key		none
				screen		etc_01
				index 		55
			</image>
			<image>
				key		check
				screen		etc_01
				index 		54
			</image>
			<title>
				state 		none
				color		ff929292
				fontIndex	2
				position	0 6
				text2 		900 63
			</title>
			<title>
				state 		over
				color		ffffffff
				fontIndex	2
				position	0 6
			</title>
			<title>
				state 		down
				color		ff929292
				fontIndex	2
				position	1 7
			</title>
			<title>
				state 		check
				color		ffffffff
				fontIndex	2
				position	0 4
			</title>
		</button>
09/11/2009 21:13 !Haroon!#2
data/share/item never tried it but theres cashshop files in there that should do the trick. pretty obvious which ones.
09/12/2009 01:31 FattyB#3
Well...
cashshop.csv from what I can see isnt used (correct me if I am wrong)

cashshop_itemlist.csv lists the items you want within a certain category

cashshop_maintab.csv displays the banners on the main tab

cashshop_tablist.csv displays what you want on each tab, kind of like a catagory, then cashshop_itemlist.csv would be everything in that catagory

itemcash.csv are the items that you can have in the Dshop


I have put things in the tablist for tabs 5 and 6 but it does not show up on the tabs in game.
09/12/2009 23:00 !Haroon!#4
having a look at the files my best bet is cashshop.csv. the best way to find out is test it... i dont have a test server handy unfortunately.
09/14/2009 11:44 FattyB#5
I messed with the cashshop file and nothing became of it.

I decided to do a little experiment since 2Moons has the 5th "Package" tab , so I unpacked the 2Moons files and implemented them on my server and client. Other than unrelated tab changes in a couple of file to make the files work with the server, I keeped everything from 2Moons. Unfourtunatly those files do exactly what mine is doing. Click on the new cashshop tab and nothing happens. I did however use my existing dekaron.exe since I could not get the 2Moons one to work. Can anyone give me insight on this? I am almost thinking this is hard coded in Dekaron.exe to load the 5th and 6th cashshop tabs or maybe I am missing something. Maybe someone from EG can let me know how they got it loaded on thiers? Dont need a hand out, just a hint.