Page 3 of 10
Re: Bulk buy/sell/drop interface collaboration
Posted: Fri Jul 01, 2011 8:02 am
by Johan
Samuel wrote:I think min, max, +10 and -10 buttons are unnecessary when we got a slider. Keep it simple.
IMO the sum of gold gained, the available gold and the item details is something worth to consider to include.
Any manually entered number greater then the max should result in the max value.
A manually entered invalid or negative number ("12a4", "-27") should result in a value of "1".
I second the suggestions. Don't forget the cancel button though.
Re: Bulk buy/sell/drop interface collaboration
Posted: Mon Jul 04, 2011 8:10 am
by ejwessel
Hello,
I'm trying to write the class for this portion of Andor's Trail. I've decided to call it "BulkSelectionInterface". I'd say I'm a moderately experienced programmer, but I'm having problems inheriting(extending) from the Dialog class...
I'm able to program the interface to pop up in a portion of my fake "main", but I'd like to turn it into a class so I it can be reused for buying/selling/and dropping
All specifics of the program aside I'm trying to just have the my dialog inherited class just pop up. I'm not entirely sure where my problem lies, but I believe it's the constructor of my class or an exception I'm not catching. The program compiles fine, but when run it gives me the "...has stopped unexpectedly." dialog when ran in the "main" activity.
I've stripped the code down to its most simple form so that I can get the program to run and this is what I have.
I'm calling my class like:
Code: Select all
BulkSelectionInterface customDialog = new BulkSelectionInterface(PlayingAroundActivity.this);
customDialog.show();
and my classes constructor is:
Code: Select all
public BulkSelectionInterface(Context context){
super(context);
setContentView(R.layout.custom_layout_buy);
setTitle("Buy Interface");
setCancelable(true);
}
-again all specifics aside I cannot get the program to run. I believe its the calling of my constructor or possibly an exception.
let me know if further information is required.
Re: Bulk buy/sell/drop interface collaboration
Posted: Mon Jul 04, 2011 10:09 am
by Samuel
ejwessel wrote:I'm calling my class like:
Code: Select all
BulkSelectionInterface customDialog = new BulkSelectionInterface(PlayingAroundActivity.this);
customDialog.show();
I don't know if the call of "show()" is synchron or assynchron. If it is assynchron perhaps you need to create the Variable: "customDialog" global instead of local.
Code: Select all
// Put it outside of any methods:
BulkSelectionInterface customDialog;
...
customDialog = new BulkSelectionInterface(PlayingAroundActivity.this);
customDialog.show();
Just a guess.
Re: Bulk buy/sell/drop interface collaboration
Posted: Tue Jul 05, 2011 5:23 am
by ejwessel
My fault. I forgot to "clean" the project. >_< Thanks though Samuel
As for the cancel button:
Is it necessary?
Does anybody else second or suggest the same idea?
Would the back button not suffice?
Just making sure before I add it.
Re: Bulk buy/sell/drop interface collaboration
Posted: Tue Jul 05, 2011 6:56 am
by ejwessel
So far so good everybody. Just uploading a screenshot of the gui again, its looking good.
The +1/-1 buttons are almost finished:
-they adjust the slider bar(not accurately)
-they adjust the textual editable number
-they account for the bounds(Ex: 1 - 10 of an item)
The object creates itself based off what you tell it to do, buy, sell or drop and displays the item that you've clicked on to perform the action to.
thinking about adding a cancel button.
sell button has no functionality for logging the edited numbers
Again I just wanted to let everybody know the progress of this component of Andor's Trail
Have Fun!
-ejwessel
Re: Bulk buy/sell/drop interface collaboration
Posted: Tue Jul 05, 2011 10:19 am
by Samuel
ejwessel wrote:So far so good everybody. Just uploading a screenshot of the gui again, its looking good.
Youre right, it looks good.
ejwessel wrote:thinking about adding a cancel button.
IMO you should. In Andors Trail it is currently used in conversations, etc, so it would be consistent.
Could you provide an apk, or the source code?
Then we can give feedback better. A screenshot can't say anything about behaviour.
Re: Bulk buy/sell/drop interface collaboration
Posted: Tue Jul 05, 2011 10:37 am
by Hecubah
I would also like not having to buy bonemeals 10 at the time

Re: Bulk buy/sell/drop interface collaboration
Posted: Tue Jul 05, 2011 10:46 am
by Samuel
Hecubah wrote:I would also like not having to buy bonemeals 10 at the time

This is something we should adjust in the droplists of the merchants.
Otherwise the current system should be changed that the supply of a merchant is refilled every time you talk to him. Could refill 1 item per minuite for example.
Re: Bulk buy/sell/drop interface collaboration
Posted: Tue Jul 05, 2011 11:09 am
by Hecubah
Samuel wrote:Hecubah wrote:I would also like not having to buy bonemeals 10 at the time

This is something we should adjust in the droplists of the merchants.
Otherwise the current system should be changed that the supply of a merchant is refilled every time you talk to him. Could refill 1 item per minuite for example.
Giving him supply of 100 bonemeals for example would make our lives 10x times easier. Should be easy to do
Re: Bulk buy/sell/drop interface collaboration
Posted: Tue Jul 05, 2011 5:45 pm
by ejwessel
Samuel wrote:
Could you provide an apk, or the source code?
Then we can give feedback better. A screenshot can't say anything about behaviour.
could, but I dont think its ready just yet, I have a couple things left to do before I'd like to test it out amongst the users. I only recently got back to this, this weekend. I'll let you all know.
as for the cancel button, I will add that.