v0.8.13 (Troubling Times) active on Google Play

Useful links
Source code of the game - Contribution guide - ATCS Editor - Translate the game on Weblate - Example walkthrough - Andor's Trail Directory - Join the Discord
Get the game (v0.8.13) from Google, Github, F-Droid, our server, or itch.io

Bulk buy/sell/drop interface collaboration

Discussions of the development process of the game.
Post Reply
Johan
Posts: 46
Joined: Mon Apr 11, 2011 11:16 am
android_version: 5.1 - Lolipop
Location: Lurking several months behind

Re: Bulk buy/sell/drop interface collaboration

Post 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.
ejwessel
Posts: 45
Joined: Tue May 31, 2011 6:23 am

Re: Bulk buy/sell/drop interface collaboration

Post 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.
Samuel
VIP
Posts: 655
Joined: Wed Feb 23, 2011 3:35 pm
android_version: 2.2

Re: Bulk buy/sell/drop interface collaboration

Post 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.
Level: 101, XP: 18780586, Gold: 358739
HP: 398, AC: 303%, AD: 84-95, AP: 4, ECC: 12, CM: -, BC: 13%, DR: 0
RoLS: 2, ElyR: 1, RoL: 1, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 2, VSH: 1, WMC: 0, GoW: 0
ejwessel
Posts: 45
Joined: Tue May 31, 2011 6:23 am

Re: Bulk buy/sell/drop interface collaboration

Post 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.
ejwessel
Posts: 45
Joined: Tue May 31, 2011 6:23 am

Re: Bulk buy/sell/drop interface collaboration

Post 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
You do not have the required permissions to view the files attached to this post.
Samuel
VIP
Posts: 655
Joined: Wed Feb 23, 2011 3:35 pm
android_version: 2.2

Re: Bulk buy/sell/drop interface collaboration

Post 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.
Level: 101, XP: 18780586, Gold: 358739
HP: 398, AC: 303%, AD: 84-95, AP: 4, ECC: 12, CM: -, BC: 13%, DR: 0
RoLS: 2, ElyR: 1, RoL: 1, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 2, VSH: 1, WMC: 0, GoW: 0
Hecubah
Posts: 15
Joined: Tue Jul 05, 2011 10:11 am

Re: Bulk buy/sell/drop interface collaboration

Post by Hecubah »

I would also like not having to buy bonemeals 10 at the time ;)
Samuel
VIP
Posts: 655
Joined: Wed Feb 23, 2011 3:35 pm
android_version: 2.2

Re: Bulk buy/sell/drop interface collaboration

Post 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.
Last edited by Samuel on Tue Jul 05, 2011 10:49 am, edited 1 time in total.
Level: 101, XP: 18780586, Gold: 358739
HP: 398, AC: 303%, AD: 84-95, AP: 4, ECC: 12, CM: -, BC: 13%, DR: 0
RoLS: 2, ElyR: 1, RoL: 1, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 2, VSH: 1, WMC: 0, GoW: 0
Hecubah
Posts: 15
Joined: Tue Jul 05, 2011 10:11 am

Re: Bulk buy/sell/drop interface collaboration

Post 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
ejwessel
Posts: 45
Joined: Tue May 31, 2011 6:23 am

Re: Bulk buy/sell/drop interface collaboration

Post 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.
Post Reply