unknowner / CAGE

CAGE - Castle Age Game Enhancer - Chrome Extension
https://chrome.google.com/webstore/detail/fdkafbmnniaaialfnijhnlhklghiojbc
11 stars 10 forks source link

Filters on Conquest Land Battle #132

Closed Bonbons closed 11 years ago

Bonbons commented 11 years ago

Add Filters on Conquest Land Battle as Guild Battle/Festival Battle.

I already try to do this but I have problems to insert the filters boxes because I'm bad on css html things.

h4dr0 commented 11 years ago

I tried sticking in the GB filters using $('#guild_battle_section').prepend() - worked but it looked rather ugly; I ought to pick up a CSS book but I'd probably have to understand html first :-)

unknowner commented 11 years ago

ou are talking about guild_conquest_castle_battlelist.php ?

Bonbons commented 11 years ago

yes and no.

I'm talking too guildv2_conquest_expansion.php

I would add filter boxes like GB into conquest land battle (mist and earth)

unknowner commented 11 years ago

I tried with it

$('#guild_battle_section').before('<div id="test">'):
$('#test').append(...filter);
$('#test').append(...filter)....

eg:

<div id="test" style="height: 20px;margin-left: 35px;">
 <span class="cageGateFilterTitle ui-state-default"> Class </span>
 <select id="cageGateClassFilter" class="cagegatefiltertitle"></select>
 <span class="cageGateFilterTitle ui-state-default"> Points </span>
 <select id="cageGatePointsFilter" class="cagegatefiltertitle"></select>
</div>

think that might be want you looking for!? :)

Bonbons commented 11 years ago

My problem is this: filter

unknowner commented 11 years ago

When you added a extra DIV for the filter stuff try to add css style position:absolute to it

unknowner commented 11 years ago

Or push your stuff and i can fetch it :)

Bonbons commented 11 years ago

Ok! I pull request ;)