Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Cocos2d-x MenuItemImage Camera Issue

  • Jim Range
  • 2015-08-24
  • 271
Cocos2d-x MenuItemImage Camera Issue
cocos2d-xmenuItemImage
  • ok logo

Скачать Cocos2d-x MenuItemImage Camera Issue бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Cocos2d-x MenuItemImage Camera Issue или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Cocos2d-x MenuItemImage Camera Issue бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Cocos2d-x MenuItemImage Camera Issue

Cocos2d-x Github Issue: https://github.com/cocos2d/cocos2d-x/...
Github repo to reproduce the issue: https://github.com/jimrange/cocos2d-x...

There does not seem to be a way to make UI HUD elements such as the MenuItemImage only touchable by coordinates touched in the default camera. Or for specific alternative cameras.

This issue seems to be a result of the EventDispatcher::dispatchTouchEventToListeners cycling through all cameras on line 834 of CCEventDispatcher.cpp of Cocos2d-x 3.8 beta 0.

e.g. touch the same coordinates of the MenuItemImage in the view of camera 1 and the button will be pressed. This creates a problem if world node has the same coordiantes as the hud node.

Maybe a workaround is to not let my game world coordinates overlap with my HUD coordinates? e.g. position the hud at Rect(0,0,maxHudWidth,maxHudHeigth) and the game world at Rect(maxHudWidth,maxHudHeigth,worldWidth,worldHeight)?

Or maybe for efficiency reasons and to fix the above issue, a filter could be applied somehow to only forward events from cameras that the API user selects.

Another way of describing the issue:
The issue is that that MenuItemImage by default (all Nodes do) has the CameraFlag::DEFAULT mask. This may stop the button from being visible in camera 1. However, if the rect that is defined for the button in the default camera is touched in camera 1, an event is dispatched as if the button were pressed in the defualt camera's view.

This issue can be demonstrated by this code by touching the HelloWorld.png sprite and observe that the button is being pressed and released.

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]