[project1dev] Project1 - SVN Update 546

  • From: dhapache@xxxxxxxxxxxxxxxxxxx (Apache User)
  • To: project1dev@xxxxxxxxxxxxx
  • Date: Fri, 1 Jan 2010 23:19:45 -0800 (PST)

User:atrix256

Message: Special request from Chris R: Tab file completion is in for the 
console now.

So before, it was really tedious to type out file names to load a map or to 
place a new model in the editor.

Now, you can start typing and press tab and it will complete the 
filename/directory name for you if there is a match, or show you all of the 
matches if there is more than one.

Example to see what i mean (this is pretty helpful stuff)

#1 - fire up the game and open the console
#2 - type "load sc" and then press tab it will become "load Scripts\"
#3 - press tab again and it will show you the contents of the scripts directory.
#4 - type "per" and press tab to make it become "load Scripts\Personal\"
#5 - type "al" and press tab to make it become "load Scripts\Personal\Alan\"
#6 - type "sp" and press tab to make it become "load 
Scripts\Personal\Alan\Spacemap.lua"
#7 - press enter to load the map

tab file completion works in the console with any command: load, place, edit, 
new, save, etc.

To get this working, i had to change some things about how the game works with 
filenames so if you hit any new bugs when editing maps or anything let me know!

<Files Changed>
U   ARRelease.exe
U   AR_DebugConsole.cpp
U   AR_DebugConsole.h
U   AR_Editor.cpp
U   AR_LuaFuncs.cpp
U   AR_Map.cpp
U   LowLevel.cpp
U   LowLevel.h


Other related posts: