Added font.ttf

master
Joel Leclerc 2012-05-02 13:16:23 -06:00
parent 24c73f3f09
commit dc7bb5d994
4 changed files with 159 additions and 8 deletions

BIN
font.ttf Normal file

Binary file not shown.

View File

@ -196,7 +196,7 @@ void GUIMainMenu::regenerateGui(v2u32 screensize)
core::rect<s32> rect(0, 0, size.X, 40);
rect += v2s32(4, 0);
Environment->addStaticText(narrow_to_wide(
"Minetest-c55 " VERSION_STRING).c_str(),
"BlockPlanet " VERSION_STRING).c_str(),
rect, false, true, this, -1);
}

View File

@ -63,21 +63,43 @@ fi
bboxes "BlockPlanet Installation Script"
echo
inst build-essential Essential_Build_Utilities libirrlicht-dev Irrlicht_Development_Files cmake CMake libbz2-dev BZ2_Development_Files libpng12-dev PNG_Development_Files libjpeg8-dev JPEG_Development_Files libxxf86vm-dev X11_Free86_Development_Files libgl1-mesa-dev GL_Development_Files libsqlite3-dev SQLite_Development_Files libogg-dev OGG_Development_Files libvorbis-dev Vorbis_Development_Files libopenal-dev OpenAL_Development_Files libcurl3 cURL_Library libcurl4-gnutls-dev cURL_Development_Files unzip Unzipper
inst build-essential Essential_Build_Utilities libirrlicht-dev Irrlicht_Development_Files cmake CMake libbz2-dev BZ2_Development_Files libpng12-dev PNG_Development_Files libjpeg8-dev JPEG_Development_Files libxxf86vm-dev X11_Free86_Development_Files libgl1-mesa-dev GL_Development_Files libsqlite3-dev SQLite_Development_Files libogg-dev OGG_Development_Files libvorbis-dev Vorbis_Development_Files libopenal-dev OpenAL_Development_Files libcurl3 cURL_Library libcurl4-gnutls-dev cURL_Development_Files unzip Unzipper ncurses-bin Shell_NCurses
echo
echo "Downloading BlockPlanet Source"
rm -f /tmp/blockplanet.zip
wget https://github.com/MiJyn/BlockPlanet/zipball/master -O /tmp/blockplanet.zip
echo "Downloading and extracting BlockPlanet Source"
export NOC=7
export NOCC=1
percent $NOC
rm -f /tmp/blockplanet.zip &> /dev/null
percentupd8 $NOC $NOCC
NOCC=$(($NOCC+1))
wget https://github.com/MiJyn/BlockPlanet/zipball/master -O /tmp/blockplanet.zip &> /dev/null
percentupd8 $NOC $NOCC
NOCC=$(($NOCC+1))
mkdir -p $TARGET &> /dev/null
cd $TARGET
percentupd8 $NOC $NOCC
NOCC=$(($NOCC+1))
cd $TARGET &> /dev/null
percentupd8 $NOC $NOCC
NOCC=$(($NOCC+1))
unzip /tmp/blockplanet.zip &> /dev/null
cd *
percentupd8 $NOC $NOCC
NOCC=$(($NOCC+1))
cd * &> /dev/null
percentfinish
echo
echo "Compiling BlockPlanet"
echo "Creating structure"
export NOC=4
export NOCC=1
percent $NOC
mkdir build
percentupd8 $NOC $NOCC
NOCC=$(($NOCC+1))
cd build
percentupd8 $NOC $NOCC
NOCC=$(($NOCC+1))
cmake .. && make
percentfinish
echo
echo "Installing BlockPlanet"
sudo make install

View File

@ -207,6 +207,135 @@ displayhelp()
done
}
# Percentage Utilities
tput init
export COLUMNS=`tput cols`
# Initializes a progress bar
# # Usage: #
# percent total
# # Arguments: #
# total = Total number of items
# # Example: #
# percent 20
percent()
{
export COLS=$(($COLUMNS-3))
export INCREASE=$(($COLS/$1))
export DONE=1
export COUNT=0
export SPACE=0
printf "\r"
echo -n "["
while [ $DONE -eq 1 ]
do
if [ $SPACE -ge $COLS ]
then
DONE=0
else
echo -n " "
SPACE=$(($SPACE+1))
fi
done
echo -n "]"
}
# Finishes a progress bar
# # Usage: #
# percentfinish
# # Example: #
# percentfinish
percentfinish()
{
export COLS=$(($COLUMNS-3))
DONE=1
CURRENTNUM=0
printf "\r"
echo -n "["
while [ $DONE -eq 1 ]
do
if [ $CURRENTNUM -eq $COLS ]
then
DONE=0
else
echo -n "="
CURRENTNUM=$(($CURRENTNUM+1))
fi
done
echo -n "]"
}
# Updates a progress bar
# # Usage: #
# percentupd8 total current
# # Arguments: #
# total = Total number of items
# current = Current number
# # Example: #
# percentupd8 20 5
percentupd8()
{
export COLS=$(($COLUMNS-3))
tempans=$1
export INCREASE=$(($COLS/$tempans))
export DONE=1
export FINISHED=$tempans
helper1()
{
export DONEH1=1
export COUNT=0
export SPACE=0
export TOTALCOUNT=$1
echo -n "["
while [ $DONEH1 -eq 1 ]
do
if [ $TOTALCOUNT -eq $COUNT ]
then
if [ $SPACE -ge $COLS ]
then
DONEH1=0
else
echo -n " "
SPACE=$(($SPACE+1))
fi
else
echo -n "="
COUNT=$(($COUNT+1))
SPACE=$(($SPACE+1))
fi
done
echo -n "]"
}
helper2()
{
export ANS=0
export DONEH2=1
export CURRENTNUM=0
export NUM=$1
while [ $DONEH2 -eq 1 ]
do
if [ $CURRENTNUM -eq $NUM ]
then
DONEH2=0
else
ANS=$(($ANS+$INCREASE))
CURRENTNUM=$(($CURRENTNUM+1))
fi
done
echo $ANS
}
if [ $tempans -eq $2 ]
then
percentfinish
else
printf "\r"
helper1 `helper2 $2`
fi
}
# Installation Utilities