.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #17  
Old May 29th, 2001, 11:14 AM

Lemmy Lemmy is offline
Second Lieutenant
 
Join Date: Mar 2001
Location: Netherlands
Posts: 479
Thanks: 0
Thanked 0 Times in 0 Posts
Lemmy is on a distinguished road
Default Re: file/mod comparing

quote:
Originally posted by Dubious:
LM:

Re 1). This will depend upon what you are programming in, but in Visual Basic6 (and I believe the other tools which are part of the 'Visual Studio' line from MS; they share tons of code as DLLs and VXDs) the 'ToolTip' is a property of the various controls. Just set the value to your description.


I'm writing it in java and Last night i took a quick look in the java documentation and couldn't find anything about tooltips. It is possible to make my own tooltip, but that will take some extra work.

quote:

Re 3). Highlighting should just be a matter of changing the background/foreground colors. If I were doing this I would simply read the files being compared into separate 'display' arrays and as discrepancies are detected for each 'row' in either file as it is read deal with the display issues (blank lines, highlighting, line numbering, etc.) in the appropriate array. But every programmer has their own style.


To display the component as text in the textarea i use one long string which is then put in the textarea, and one textarea has only one font, i think that also includes color. So there are two problems with highlighting
1. how do i find what i should highlight ?
this could be accomplished with several changes in my code

2. how do i show it ?
thi depends on java, if java supports different colors in one textarea or something similar, it's no problem. Now that i think of it, it is possible, but it will take a while to implement it.

quote:

Re 4). It would not be unreasonable to ask the user to point to the installed game directory, but I would simply do a directory 'hunt' for the SE4.EXE file first and ask only if more than one was found. Or (less desirable in my view but not unreasonable either), require they install your tool in a specific subdirectory directly under the game directory so you can use relative pathing (ie '..' for the parent directory, '.' for the current directory) so you use '..\AI\<filename>' or '..\Pictures\Races\<RaceName>\<filename>'.



of all the options you mentioned, i think the first one (ask the user) is the best. Doing a 'hunt' for the .exe files may not be possible in java. And i agree that installing the program in a specific dir is undesirable.

quote:

I'm just thrilled someone is willing to pursue this. (I have ZERO time to program outside of work these days.) Glad you find my comments useful.


i'm thrilled also
__________________
[Boo!]
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.