mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 11:26:37 +00:00 
			
		
		
		
	Do not open the dialogue window if no greeting is found
This commit is contained in:
		
							parent
							
								
									312f68bf9c
								
							
						
					
					
						commit
						4feaa66897
					
				
					 1 changed files with 7 additions and 6 deletions
				
			
		|  | @ -122,15 +122,9 @@ namespace MWDialogue | ||||||
| 
 | 
 | ||||||
|         MWMechanics::CreatureStats& creatureStats = MWWorld::Class::get (actor).getCreatureStats (actor); |         MWMechanics::CreatureStats& creatureStats = MWWorld::Class::get (actor).getCreatureStats (actor); | ||||||
|         mTalkedTo = creatureStats.hasTalkedToPlayer(); |         mTalkedTo = creatureStats.hasTalkedToPlayer(); | ||||||
|         creatureStats.talkedToPlayer(); |  | ||||||
| 
 | 
 | ||||||
|         mActorKnownTopics.clear(); |         mActorKnownTopics.clear(); | ||||||
| 
 | 
 | ||||||
|         //initialise the GUI
 |  | ||||||
|         MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Dialogue); |  | ||||||
|         MWGui::DialogueWindow* win = MWBase::Environment::get().getWindowManager()->getDialogueWindow(); |  | ||||||
|         win->startDialogue(actor, MWWorld::Class::get (actor).getName (actor)); |  | ||||||
| 
 |  | ||||||
|         //setup the list of topics known by the actor. Topics who are also on the knownTopics list will be added to the GUI
 |         //setup the list of topics known by the actor. Topics who are also on the knownTopics list will be added to the GUI
 | ||||||
|         updateTopics(); |         updateTopics(); | ||||||
| 
 | 
 | ||||||
|  | @ -146,6 +140,13 @@ namespace MWDialogue | ||||||
|             { |             { | ||||||
|                 if (const ESM::DialInfo *info = filter.search (*it)) |                 if (const ESM::DialInfo *info = filter.search (*it)) | ||||||
|                 { |                 { | ||||||
|  |                     //initialise the GUI
 | ||||||
|  |                     MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Dialogue); | ||||||
|  |                     MWGui::DialogueWindow* win = MWBase::Environment::get().getWindowManager()->getDialogueWindow(); | ||||||
|  |                     win->startDialogue(actor, MWWorld::Class::get (actor).getName (actor)); | ||||||
|  | 
 | ||||||
|  |                     creatureStats.talkedToPlayer(); | ||||||
|  | 
 | ||||||
|                     if (!info->mSound.empty()) |                     if (!info->mSound.empty()) | ||||||
|                     { |                     { | ||||||
|                         // TODO play sound
 |                         // TODO play sound
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue