Merge branch 'master' of github.com:supertuxkart/stk-code
This commit is contained in:
@@ -39,31 +39,31 @@
|
||||
<spacer width="10" height="10" />
|
||||
|
||||
<buttonbar id="menu_bottomrow" x="0" y="0" width="38%" height="100%" align="center">
|
||||
<icon-button id="test_gpwin" width="64" height="64" icon="gui/main_options.png" extend_label="50"
|
||||
<icon-button id="test_gpwin" width="64" height="64" icon="gui/main_options.png"
|
||||
raw_text="TEST: GPWin" label_location="hover"/>
|
||||
<icon-button id="test_gplose" width="64" height="64" icon="gui/main_options.png" extend_label="50"
|
||||
<icon-button id="test_gplose" width="64" height="64" icon="gui/main_options.png"
|
||||
raw_text="TEST: GPLose" label_location="hover"/>
|
||||
<icon-button id="test_unlocked" width="64" height="64" icon="gui/main_options.png" extend_label="50"
|
||||
<icon-button id="test_unlocked" width="64" height="64" icon="gui/main_options.png"
|
||||
raw_text="TEST: Unlocked" label_location="hover"/>
|
||||
<icon-button id="test_unlocked2" width="64" height="64" icon="gui/main_options.png" extend_label="50"
|
||||
<icon-button id="test_unlocked2" width="64" height="64" icon="gui/main_options.png"
|
||||
raw_text="TEST: Unlocked 2" label_location="hover"/>
|
||||
<icon-button id="test_intro" width="64" height="64" icon="gui/main_options.png" extend_label="50"
|
||||
<icon-button id="test_intro" width="64" height="64" icon="gui/main_options.png"
|
||||
raw_text="TEST: Intro" label_location="hover"/>
|
||||
<icon-button id="test_outro" width="64" height="64" icon="gui/main_options.png" extend_label="50"
|
||||
<icon-button id="test_outro" width="64" height="64" icon="gui/main_options.png"
|
||||
raw_text="TEST: Outro" label_location="hover"/>
|
||||
<icon-button id="options" width="64" height="64" icon="gui/main_options.png" extend_label="50"
|
||||
<icon-button id="options" width="64" height="64" icon="gui/main_options.png"
|
||||
I18N="In the main screen" text="Options" label_location="hover"/>
|
||||
<icon-button id="help" width="64" height="64" icon="gui/main_help.png" extend_label="50"
|
||||
<icon-button id="help" width="64" height="64" icon="gui/main_help.png"
|
||||
I18N="In the main screen" text="Help" label_location="hover"/>
|
||||
<icon-button id="startTutorial" width="64" height="64" icon="gui/tutorial.png" extend_label="150"
|
||||
<icon-button id="startTutorial" width="64" height="64" icon="gui/tutorial.png"
|
||||
I18N="In the main screen" text="Tutorial" label_location="hover"/>
|
||||
<icon-button id="achievements" width="64" height="64" icon="gui/gp_copy.png" extend_label="150"
|
||||
<icon-button id="achievements" width="64" height="64" icon="gui/gp_copy.png"
|
||||
I18N="In the main screen" text="Achievements" label_location="hover"/>
|
||||
<icon-button id="gpEditor" width="64" height="64" icon="gui/gpeditor.png" extend_label="150"
|
||||
<icon-button id="gpEditor" width="64" height="64" icon="gui/gpeditor.png"
|
||||
I18N="In the main screen" text="Grand Prix Editor" label_location="hover"/>
|
||||
<icon-button id="about" width="64" height="64" icon="gui/main_about.png" extend_label="50"
|
||||
<icon-button id="about" width="64" height="64" icon="gui/main_about.png"
|
||||
I18N="In the main screen" text="About" label_location="hover"/>
|
||||
<icon-button id="quit" width="64" height="64" icon="gui/main_quit.png" extend_label="50"
|
||||
<icon-button id="quit" width="64" height="64" icon="gui/main_quit.png"
|
||||
I18N="In the main screen" text="Quit" label_location="hover"/>
|
||||
</buttonbar>
|
||||
</bottombar>
|
||||
|
||||
@@ -16,9 +16,11 @@ void main()
|
||||
col += .25 * texture(tex_256, uv);
|
||||
col += .5 * texture(tex_512, uv);
|
||||
|
||||
// Blue color for lens flare
|
||||
/*col *= 0.5;
|
||||
float final = max(col.r,max(col.g,col.b));
|
||||
//final = final * 2;
|
||||
vec3 blue = vec3(final * 0.1, final * 0.2, final);
|
||||
final = final * 2;
|
||||
vec3 blue = vec3(final * 0.1, final * 0.2, final);*/
|
||||
|
||||
FragColor = vec4(blue, 1.);
|
||||
FragColor = vec4(col.rgb, 1.);
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
<!-- The field od views for 1-4 player split screen. fov-3 is
|
||||
actually not used (since 3 player split screen uses the
|
||||
same layout as 4 player split screen) -->
|
||||
<camera fov-1="75" fov-2="65" fov-3="50" fov-4="75" />
|
||||
<camera fov-1="80" fov-2="65" fov-3="50" fov-4="75" />
|
||||
|
||||
<!-- disable-while-unskid: Disable steering when stop skidding during
|
||||
the time it takes to adjust the physical body with the graphics.
|
||||
|
||||
@@ -77,12 +77,7 @@ int LODNode::getLevel()
|
||||
Camera* camera = Camera::getActiveCamera();
|
||||
if (camera == NULL)
|
||||
return (int)m_detail.size() - 1;
|
||||
AbstractKart* kart = camera->getKart();
|
||||
// use kart position and not camera position when a kart is available,
|
||||
// because for some effects the camera will be moved to various locations
|
||||
// (for instance shadows), so using camera position for LOD may result
|
||||
// in objects being culled when they shouldn't
|
||||
const Vec3 &pos = (kart != NULL ? kart->getFrontXYZ() : camera->getCameraSceneNode()->getAbsolutePosition());
|
||||
const Vec3 &pos = camera->getCameraSceneNode()->getAbsolutePosition();
|
||||
|
||||
const int dist =
|
||||
(int)((m_nodes[0]->getAbsolutePosition()).getDistanceFromSQ(pos.toIrrVector() ));
|
||||
|
||||
@@ -167,11 +167,34 @@ void IconButtonWidget::add()
|
||||
|
||||
if (m_properties[PROP_LABELS_LOCATION] == "hover")
|
||||
{
|
||||
widget_size = rect<s32>(m_x - label_extra_size/2,
|
||||
m_y - (word_wrap ? GUIEngine::getFontHeight()*2 :
|
||||
GUIEngine::getFontHeight()) - 15,
|
||||
m_x + m_w + label_extra_size/2,
|
||||
m_y - 15);
|
||||
core::dimension2du text_size = GUIEngine::getFont()->getDimension(message.c_str());
|
||||
core::recti pos = btn->getAbsolutePosition();
|
||||
int center_x = pos.UpperLeftCorner.X + pos.getWidth() / 2;
|
||||
int x1 = center_x - text_size.Width / 2 - label_extra_size / 2;
|
||||
int y1 = pos.UpperLeftCorner.Y - (word_wrap ? GUIEngine::getFontHeight() * 2 :
|
||||
GUIEngine::getFontHeight()) - 15;
|
||||
int x2 = center_x + text_size.Width / 2 + label_extra_size / 2;
|
||||
int y2 = pos.UpperLeftCorner.Y - 15;
|
||||
|
||||
if (x1 < 0)
|
||||
{
|
||||
int diff = -x1;
|
||||
x1 += diff;
|
||||
x2 += diff;
|
||||
}
|
||||
else if (x2 > irr_driver->getActualScreenSize().Width)
|
||||
{
|
||||
int diff = x2 - irr_driver->getActualScreenSize().Width;
|
||||
x2 -= diff;
|
||||
x1 -= diff;
|
||||
}
|
||||
|
||||
core::recti parent_pos = m_parent->getAbsolutePosition();
|
||||
x1 -= parent_pos.UpperLeftCorner.X;
|
||||
x2 -= parent_pos.UpperLeftCorner.X;
|
||||
y1 -= parent_pos.UpperLeftCorner.Y;
|
||||
y2 -= parent_pos.UpperLeftCorner.Y;
|
||||
widget_size = rect<s32>(x1, y1, x2, y2);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "items/flyable.hpp"
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <IMeshManipulator.h>
|
||||
#include <IMeshSceneNode.h>
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
#include <algorithm> // for min and max
|
||||
#include <iostream>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
|
||||
|
||||
@@ -549,6 +549,9 @@ void cmdLineHelp()
|
||||
" -h, --help Show this help.\n"
|
||||
" --log=N Set the verbosity to a value between\n"
|
||||
" 0 (Debug) and 5 (Only Fatal messages)\n"
|
||||
" --root=DIR Path to add to the list of STK root directories.\n"
|
||||
" You can specify more than one by separating them\n"
|
||||
" with colons (:).\n"
|
||||
"\n"
|
||||
"You can visit SuperTuxKart's homepage at "
|
||||
"http://supertuxkart.sourceforge.net\n\n",
|
||||
|
||||
@@ -447,7 +447,8 @@ void btKart::updateVehicle( btScalar step )
|
||||
btVector3 kart_up = getChassisWorldTransform().getBasis().getColumn(1);
|
||||
btVector3 terrain_up(0,1,0);
|
||||
btVector3 axis = kart_up.cross(terrain_up);
|
||||
axis.normalize();
|
||||
if(!axis.fuzzyZero())
|
||||
axis.normalize();
|
||||
|
||||
// To avoid the kart going backwards/forwards (or rolling sideways),
|
||||
// set the pitch/roll to 0 before applying the 'straightening' impulse.
|
||||
|
||||
@@ -940,7 +940,7 @@ TrackObjectPresentationActionTrigger::TrackObjectPresentationActionTrigger(
|
||||
|
||||
std::string trigger_type;
|
||||
xml_node.get("trigger-type", &trigger_type);
|
||||
if (trigger_type == "point")
|
||||
if (trigger_type == "point" || trigger_type.empty())
|
||||
{
|
||||
m_type = TRIGGER_TYPE_POINT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user