Skip to content

Releases: Cosmoverse/NpcDialogue

v0.1.1

08 Apr 11:32
Compare
Choose a tag to compare
  • Added a property $update_existing to NpcDialogueManager::send() to update existing dialogue
  • Added an await-generator based asynchronous mechanism to request dialogues
    $name = "Hello, " . $player->getName();
    $text = "Click the Button!";
    $buttons = [SimpleNpcDialogueButton::simple("Click me")];
    $update_existing = false;
    while(true){
    	try{
    		$response = yield from NpcDialogueManager::request($player, $name, $text, buttons: $buttons, update_existing: $update_existing);
    	}catch(NpcDialogueException){
    		break; // closed, disconnected, or gave invalid response - see NpcDialogueException::getCode()
    	}
    	assert(isset($buttons[$response]));
    	$update_existing = true;
    	$text = "You clicked the button on " . (new DateTimeImmutable())->format("Y-m-d H:i:s");
    }
    https://i.imgur.com/2ky23TD.mp4
  • Fixed crashes when sending dialogues to players post-quit

v0.0.3

01 Sep 11:10
Compare
Choose a tag to compare
  • Added NPC texture constants for apiary, teacher, construction, agriculture, businessmobs, everydaybusiness, and kiosk.
    The following constants were added:
    • DefaultNpcDialogueTexture::TEXTURE_APIARY_1
    • DefaultNpcDialogueTexture::TEXTURE_APIARY_2
    • DefaultNpcDialogueTexture::TEXTURE_APIARY_3
    • DefaultNpcDialogueTexture::TEXTURE_APIARY_4
    • DefaultNpcDialogueTexture::TEXTURE_APIARY_5
    • DefaultNpcDialogueTexture::TEXTURE_TEACHER_1
    • DefaultNpcDialogueTexture::TEXTURE_TEACHER_2
    • DefaultNpcDialogueTexture::TEXTURE_TEACHER_3
    • DefaultNpcDialogueTexture::TEXTURE_TEACHER_4
    • DefaultNpcDialogueTexture::TEXTURE_TEACHER_5
    • DefaultNpcDialogueTexture::TEXTURE_CONSTRUCTION_1
    • DefaultNpcDialogueTexture::TEXTURE_CONSTRUCTION_2
    • DefaultNpcDialogueTexture::TEXTURE_CONSTRUCTION_3
    • DefaultNpcDialogueTexture::TEXTURE_CONSTRUCTION_4
    • DefaultNpcDialogueTexture::TEXTURE_CONSTRUCTION_5
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_1
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_2
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_3
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_4
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_5
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_6
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_7
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_8
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_9
    • DefaultNpcDialogueTexture::TEXTURE_AGRICULTURE_10
    • DefaultNpcDialogueTexture::TEXTURE_BUSINESSMOBS_1
    • DefaultNpcDialogueTexture::TEXTURE_BUSINESSMOBS_2
    • DefaultNpcDialogueTexture::TEXTURE_BUSINESSMOBS_3
    • DefaultNpcDialogueTexture::TEXTURE_BUSINESSMOBS_4
    • DefaultNpcDialogueTexture::TEXTURE_BUSINESSMOBS_5
    • DefaultNpcDialogueTexture::TEXTURE_EVERYDAYBUSINESS_1
    • DefaultNpcDialogueTexture::TEXTURE_EVERYDAYBUSINESS_2
    • DefaultNpcDialogueTexture::TEXTURE_EVERYDAYBUSINESS_3
    • DefaultNpcDialogueTexture::TEXTURE_EVERYDAYBUSINESS_4
    • DefaultNpcDialogueTexture::TEXTURE_EVERYDAYBUSINESS_5
    • DefaultNpcDialogueTexture::TEXTURE_KIOSK_1
    • DefaultNpcDialogueTexture::TEXTURE_KIOSK_2
    • DefaultNpcDialogueTexture::TEXTURE_KIOSK_3
    • DefaultNpcDialogueTexture::TEXTURE_KIOSK_4
    • DefaultNpcDialogueTexture::TEXTURE_KIOSK_5

v0.0.2

31 Aug 09:40
0b6b602
Compare
Choose a tag to compare
Release v0.0.2

v0.0.1

07 Aug 10:48
Compare
Choose a tag to compare
Create .poggit.yml

Poggit-CI is enabled for this repo by @Muqsit
Visit the Poggit-CI page for this repo at https://poggit.pmmp.io/ci/Cosmoverse/NpcDialogue