It is currently 27 Apr 2024, 05:59
   
Text Size

Cards filter in Deck editor

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Cards filter in Deck editor

Postby Vasiliy » 25 Nov 2009, 14:08

Hello.
I write cards filter.
Screenshots:
1. Menu:
Image

2. Filter:
Image

3. Result:
Image

I hope, my code is right.
Attachments
Cards_filter_source.rar
Source
(19.18 KiB) Downloaded 209 times
Sorry for my english. I speak english very bad.
Vasiliy
Programmer
 
Posts: 47
Joined: 15 Nov 2009, 12:26
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby DennisBergkamp » 25 Nov 2009, 16:44

Very cool, it looks like you can search by name now?
Thanks :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby Vasiliy » 25 Nov 2009, 18:00

Yes. ;)
Sorry for my english. I speak english very bad.
Vasiliy
Programmer
 
Posts: 47
Joined: 15 Nov 2009, 12:26
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby zerker2000 » 25 Nov 2009, 22:07

Along those lines, could you add search by text, e.g. "destroy target"?
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby Vasiliy » 26 Nov 2009, 06:55

I try do it.
Sorry for my english. I speak english very bad.
Vasiliy
Programmer
 
Posts: 47
Joined: 15 Nov 2009, 12:26
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby Vasiliy » 26 Nov 2009, 09:24

I add search by text.
Screenshot:

Image

I correct one bug in filter.
My changes based on revision r102 (In r102 filter not work :( I correct this bug)
I add to source file (see in attachment) only changes files.
And I add filter to quest deck editor.
Please test it and if it work correct, then change it on revision.


P.S. merlijn.vandenbos, you forgot add file CardFilter.java to r102.
Attachments
Cards_filter_v1_1.zip
Source
(27.17 KiB) Downloaded 199 times
Sorry for my english. I speak english very bad.
Vasiliy
Programmer
 
Posts: 47
Joined: 15 Nov 2009, 12:26
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby Huggybaby » 26 Nov 2009, 16:47

Thanks Vasiliy. Your english is perfectly understandable too, and will get better by writing here!
User avatar
Huggybaby
Administrator
 
Posts: 3207
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 701 times
Been thanked: 594 times

Re: Cards filter in Deck editor

Postby zerker2000 » 26 Nov 2009, 21:53

Vasiliy, do you have a google account? If not, go to the url below and make one. Then, PM it to Dennis/Rob or post it here, and they'll add you as a committer on SVN. After that, you can edit forge directly by using the commiter svn(to be found at http://code.google.com/p/cardforge/ after you are added as comitter, which is where I think you got the read-only one in the first place).
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby silly freak » 26 Nov 2009, 22:45

and don't forget to change the trunk from http to https ;)
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Cards filter in Deck editor

Postby Vasiliy » 27 Nov 2009, 08:11

zerker2000, look your PM, please.
Sorry for my english. I speak english very bad.
Vasiliy
Programmer
 
Posts: 47
Joined: 15 Nov 2009, 12:26
Has thanked: 0 time
Been thanked: 0 time

Re: Cards filter in Deck editor

Postby zerker2000 » 27 Nov 2009, 19:49

I have, thanks, and I quote for anyone able to read russian:
zerker2000 wrote:
Vasiliy wrote:Subject: Cards filter in Deck editor

zerker2000 wrote:...
Привет. Как то я не понял твоего предложения по поводу SVN.
Я сейчас с адреса http://cardforge.googlecode.com/svn при помощи Eclipse обновляю свою локальную версию регулярно.
А в чем суть твоего предложения?
Получив права commiter-а, можно будет посылать изменения напрямую, а не через форум. Это облегчает работу Dennis-у, которому не приходится разбиратся как вставлять изменения, и тебе, которому не придётся на англиском это ему обяснять.

P.S. Я не профессиональный программист (программировиание - это мое хобби), а Java в первый раз я увидел только 17.11.2009, с SNV до этого тоже не работал. Поэтому возможно я чего то не понимаю примитивного.
Примитивные понятия от языка мало заврсят, а все сложные которые тут понадобятся нетрудно найти в уже зделанных картах. Про SVN, идея действительно проста: програмистам нужно код не только скачивать, но и загружать обратно результат работы.

P.P.S. Аккаунт в Google (он же e-mail как я понимаю у меня есть) - <anEmail>@gmail.com
Правильно понимаешь, шли PM to DennisBergkamp.
Word of caution: пароль от SVN не тот, который у тебя не мейле, а случайно созданный гуглом: http://code.google.com/hosting/settings
EDIT: email screened
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 100 guests


Who is online

In total there are 100 users online :: 0 registered, 0 hidden and 100 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 100 guests

Login Form