No watching replay when split-screen
And some bugs fixes
This commit is contained in:
parent
da70d305a9
commit
b92210d4a0
@ -19,7 +19,7 @@
|
||||
<div width="100%" height="fit" layout="horizontal-row" >
|
||||
<checkbox width="fit" id="watch-only" I18N="Ghost replay info action" text_align="left"/>
|
||||
<spacer width="10"/>
|
||||
<label proportion="1" height="100%" text_align="left" I18N="Ghost replay info action" text="Watch replay only"/>
|
||||
<label proportion="1" id="watch-only-text" height="100%" text_align="left" I18N="Ghost replay info action" text="Watch replay only"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -954,6 +954,7 @@ void RaceManager::startWatchingReplay(const std::string &track_ident,
|
||||
setMajorMode(RaceManager::MAJOR_MODE_SINGLE);
|
||||
setCoinTarget(0);
|
||||
m_num_karts = ReplayPlay::get()->getNumGhostKart();
|
||||
m_kart_status.clear();
|
||||
|
||||
Log::verbose("RaceManager", "%u ghost kart(s) for watching replay only\n",
|
||||
(unsigned int)m_num_karts);
|
||||
|
@ -47,6 +47,13 @@ GhostReplayInfoDialog::GhostReplayInfoDialog(unsigned int replay_id)
|
||||
m_record_widget = getWidget<CheckBoxWidget>("record-race");
|
||||
m_watch_widget = getWidget<CheckBoxWidget>("watch-only");
|
||||
|
||||
if (race_manager->getNumLocalPlayers() > 1)
|
||||
{
|
||||
// No watching replay when split-screen
|
||||
m_watch_widget->setVisible(false);
|
||||
getWidget<LabelWidget>("watch-only-text")->setVisible(false);
|
||||
}
|
||||
|
||||
m_record_widget->setState(false);
|
||||
m_watch_widget->setState(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user