|
|
|
|
January 2nd, 2007, 02:44 AM
|
|
General
|
|
Join Date: Oct 2006
Posts: 3,445
Thanks: 85
Thanked 79 Times in 51 Posts
|
|
Another simple improvement
Is there any way we could get the magic item inventory to be interactive? I realise this would take some attention from Johan, but it would be nice if we could play with/organize our magical items. It's a very small thing, I realize, but it would be a nice feature if this were improved.
The simplest way to do this would just be to allow us to grab-and-drag items within the magic item "box" and then press a key/drag them to an icon to assign them. It's alright the way things currently are, and there are definitely other things which require more immediate attention, but it'd be nice to be able to fiddle with our spare items while thinking.
__________________
You've sailed off the edge of the map--here there be badgers!
|
January 2nd, 2007, 01:56 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Another simple improvement
Im not sure if drag-n-drop would work. Thats kindof a windowsy thing isnt it?
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
January 2nd, 2007, 10:37 PM
|
|
Sergeant
|
|
Join Date: Jan 2004
Location: athens, georgia
Posts: 274
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Re: Another simple improvement
It's a GUI thing, Gandalf. If you play Dom III via CLI I will be very impressed.
Personally, I would love some polishing done to the interface. The right libraries make it easy to do in almost any language. The trick here would be to make it portable since you have to allow for crazy Winders in addition to X11 for Linux and Mac.
__________________
--Uh-Nu-Buh, Fire/Death
|
January 3rd, 2007, 02:02 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Another simple improvement
It seems like whatever its programmed on comes out ahead and whatever its ported to loses a few things. The D-n-D thing seems to happen automatically on programs written on windows.
Im sure it can still be done, just something abit more manual.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
January 3rd, 2007, 05:55 AM
|
|
Major General
|
|
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
|
|
Re: Another simple improvement
Dominions uses the SDL library, and only the SDL library - no ..-widgets, no GTK or something else ... do you really expect ONE hobby programmer to be able to be "fluent" with those as well, especially if he has a life?
http://www.libsdl.org/pipermail/sdl/...er/071467.html
[SDL] Drag and Drop
Paulo A Ferreira paulo at novisnet.pt
Sun Dec 4 04:10:54 PST 2005
Benjamin Grauer wrote:
>
> Hi there
>
> i was wondering, it there was some simple SDL-like trick to get DnD
> (Drag and Drop) running, so i can drop some file-links fron
> konqueror/MS-Explorer/etc. into my SDL-app??
Maybe this can help you ?
http://www.libsdl.org/projects/scrap/
Scrap 1.0
Author: Sam Lantinga
Source: scrap-1.0.tar.gz
Requires: SDL 1.0
Runs on: Linux, Win32
Description:
An example of cut-and-paste in an SDL application, using the platform-specific window message hooks SDL provides.
Instructions:
Unpack, and build. Run "scrap example.bmp" in one window, and then the program "scrap" in another window. They both will display the same image, copied from the clipboard.
As one can see, there's the critical "Mac" missing from the "runs on" list ...
http://www.libsdl.org/pipermail/sdl/...er/064976.html
[SDL] Drag and Drop
Paulo Pinto pjmlp at progtools.org
squale wrote:
>Hi,
>
>I want to know if any of you has ever programmed a drag and drop
>behaviour in something like card games, bacjgammon or chess...
>
>In that case could you please tell me the way you did it and if you
>have any source about this (URL, code sample...) it would be greatly
>appreciated !
>
>thanx
Hi,
You should do something like this:
- When you get a click event, check if the mouse
if over a moveable object, say a card. Change into
grabbing mode;
- While in grabbing mode, when the user moves
the mouse, update the object location to reflect the
movement;
- When the user releases the mouse button, return
to normal mouse mode.
The refered normal/grabbing modes are something
that you have to keep track of.
Cheers,
Paulo
Doesn't work as well I think - the icons of the items are likely not "objects" in that sense, but simply bitmaps loaded into a pre-made grid ... nothing to grab here.
This doesn't mean it can't be done, but it's unlikely: Johan does not like coding GUI (its a pain with C/C++, even if you're using SDL or Allegro Library or some widget pack), there are some urgend bugs to fix, and this would be prone to induce lots of new ones ...
What might be much easier done would be auto-sorting, preferably in the very same order the items are on the commanders:
Weapons, Shields, Helmets, Armors, Boots, Misc.
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
|
January 3rd, 2007, 06:03 AM
|
|
General
|
|
Join Date: Oct 2006
Posts: 3,445
Thanks: 85
Thanked 79 Times in 51 Posts
|
|
Re: Another simple improvement
That would atleast be a great improvement, but I hope we get objects by Dom4. If I were Johan, by the way, I'd hire someone to do all the grunge programming he doesn't like to do, like C/C++.
__________________
You've sailed off the edge of the map--here there be badgers!
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|